Vidie 5 Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 (upraveno) Ahojte takže sem se doma při nemoci nudil tak sem pro vás udělal TUT New: new job[MAX_PLAYERS]; //proměna pro povolání new povolanipick; // definace povolání #define SCM SendClientMessage GameModeInit:povolanipick = CreatePickup(1314,1,X,Y,Z); // Doplnte si souřadnice OnPlayerPickupPickup:if(pickupid == povolanipick){ SCM(playerid,COLOR_****,"Tady si něco napiš např: zaměstnej se L.ALTem");// Tady si něco dejte třeba } OnPlayerKeyStateChange:if(newkeys == KEY_WALK){//L.ALT pro zaměstnání if(IsPlayerInSphere(playerid,X,Y,Z, 3) == 1){//když je v určitých souřadnicích, Doplnte si! if(job[playerid] == 1) return SendClientMessage(playerid, COLOR_GREEN, "[** ERROR **] Zde už jsi zaměstnán!"); job[playerid] = 1; // Zaněstná ho SetPlayerSkin(playerid, ID Skinu);//nastavi skin GivePlayerWeapon(playerid, ZBRAN,Náboje);// damu zbran //ATD Zde si muzete doplnit třeba mu doplnit zdraví a tak } } To je vše, Lehké že? Edited 4. Duben, 2015 by Vidie 3 Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 jááá díky -- stř 06. led 2010 9:23:15 -- když budu delat povolání to využiju Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 Pekny TuT Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 Díky všem jestli bude chyba, tak pls řekněte dělal sem to z paměti xD Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 GameModeInit: Kód: povolanipick = CreatePickup(1314,1,X,Y,Z); // Doplnte si souřadnice vysvetlivky...1314 = dejte si ID pickupu ... 1 = nechte jako je X,Y,Z to si vymazte a dejte si tam souradnice Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 To vie aj zaciatocnik v pawne kappa Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 a jeste otazka...new job[MAXPLAYERS]; to jako ta promenna job to jak ma byt? Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 V Onplayerkeycahnge mas ze job[playerid] = 1; tak to je to Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 aha...a když chci udelat nove povolani mam udelat ja nevim new policajt[MAXPLAYERS];?? a to my vytvori novou promenu? (sem lama no "fresse" ) Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 Ne to už bude job[playerid] = 2; Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 tohle se myslel dík -- stř 06. led 2010 9:38:49 -- a ked chcem abi som to robil klavesou space? Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 KEY_SPRINT Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 Ty si kua xD daval som tu nato tut na tie skratky a ty sa to pytas-->mas tam aj dalsie skratky. viewtopic.php?f=8&t=6388" onclick="window.open(this.href);return false; Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 Přidána ochrana protitomu aby se nikdo nezaměstnal víc krát a neschrábnul tak Zbraně xD Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 hm...nemyslim ze obchodakovi bude treba zbrane xD Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 DjKappa[ ! ]":26u7oefl]hm...nemyslim ze obchodakovi bude treba zbrane xD Trošku sem nepochopil Link to comment Share on other sites More sharing options...
Guest Smaženy Syr Odesláno: 6. Leden, 2010 Share Odesláno: 6. Leden, 2010 ze urobim povolanie dealer oblecenia...a potom naco mu bude zbran? maximalne nozik na rezanie pasky Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 6. Leden, 2010 Author Share Odesláno: 6. Leden, 2010 DjKappa[ ! ]":4r26qh16]ze urobim povolanie dealer oblecenia...a potom naco mu bude zbran? maximalne nozik na rezanie pasky LOL //6ISTÝ PŘÍSPĚVĚK Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 Niektorym ludom bude ukazovat tento error a error newkeys na SCM: undefined symbol "SCM" a na newkeys: undefined symbol "newkeys" na SCM neviem ale na newkeys mam new newkeys; len 1 error mam to SCM Link to comment Share on other sites More sharing options...
Adamos 1 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 Niektorym ludom bude ukazovat tento error a error newkeysna SCM: undefined symbol "SCM" a na newkeys: undefined symbol "newkeys" na SCM neviem ale na newkeys mam new newkeys; len 1 error mam to SCM Zadnej new newkeys; Tohle je definovane v publicu OnPlayerKeyStateChange. Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 8. Leden, 2010 Author Share Odesláno: 8. Leden, 2010 Niektorym ludom bude ukazovat tento error a error newkeysna SCM: undefined symbol "SCM" a na newkeys: undefined symbol "newkeys" na SCM neviem ale na newkeys mam new newkeys; len 1 error mam to SCM Neumíš nadefinovat #define SCM SendClientMessage ? Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 Už som to vyriešil xD spomenul sm si že SCM je SendClientMassage xDD Link to comment Share on other sites More sharing options...
Guest Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 dawner pomohlo ? (povolenie ? na move object ) Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 J všetko mi faka ešte som nastavil setimer na 10 sekund,aby sa pootvoreni zavrela po 10 sek. díki za ten Move Object. Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 To si jako nikdo nevšimne že tam ma fatalni chybu v klavese? viz: špatně: http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange#How_NOT_to_check_for_a_key spravně: http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange#How_to_check_for_a_key if (newkeys & KEY_FIRE) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now