Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/work", true) == 0)
- {
- if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda cand ai wanted!");
- if(PlayerOnMission[playerid] > 0) return SCM(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda cand ai misiune On!");
- if(CP[playerid] != 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai un punct rosu pe harta, dezactiveaza-l intai!");
- if(InJob[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai deja o slujba de efectuat, nu poti sa folosesti aceasta comanda!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu trebuie sa te afli intr-un vehicul!");
- switch (PlayerInfo[playerid][pJob] )
- {
- case 0: SCM ( playerid, COLOR_LIGHTRED, "Nu detii un job!" ) ;
- case 8:
- {
- if(!PlayerToPoint(10.0,playerid,-807.7404,-137.8756,63.8066)) return SCM(playerid, COLOR_LIGHTRED, " Nu esti la locatia potrivita ");
- {
- if(marfap[playerid] == 0)
- {
- InJob[playerid] = 1;
- new randcp = random(sizeof(RandomLemne));
- SetPlayerCheckpoint(playerid, RandomLemne[randcp][0], RandomLemne[randcp][1], RandomLemne[randcp][2], RandomLemne[randcp][3]);
- return 1;
- }
- }
- case 10:
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 572)
- {
- SetPlayerCheckpoint(playerid,-9.8959,-2.0086,3.1172,3.0);
- GameTextForPlayer(playerid, "~g~Urmeaza CheckPointurile de Map~n~~w~Succes!", 5000, 3);
- iarbPVAR [ playerid ] = gettime ( ) + 160;
- CP[playerid] = 0;
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement