27.03.2013, 09:11
Hey,
i have this script :-
I want that if Playercolor is COLOR_LIGHTBLUE, he can only do work in Planes and if he enter another vehicle and type /work, he should get a warning, You need to be in a Plane to do work.
Plane ids :- 519, 593, 592 and 577.
Thanks.
i have this script :-
Код:
CMD:work(playerid,params[]) { if(GetPlayerColor(playerid) == COLOR_LIGHTBLUE) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You must be in a vehicle"); SetPlayerCheckpoint(playerid,1574.9419, 1507.3461, 9.7977,16);//Change X,Y,Z acc to your needs SendClientMessage(playerid,COLOR_ORANGE,"Flight from Las Venturas Airport to San Fierro Airport with Passengers"); currentcp[playerid] = 1; } return 1; }
Plane ids :- 519, 593, 592 and 577.
Thanks.