29.03.2011, 17:43
Okey no errors
this is the command
No errors.
But It allways tells me that im not the driver .
this is the command
Код:
dcmd_jack(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][pJob] != 1) return SendClientMessage(playerid,COLOR_AFOR,"You are not a car jacker !"); new newstate; if(PlayerInfo[playerid][pJob] == 1) { if( newstate == PLAYER_STATE_DRIVER ) { newstate = GetPlayerVehicleID(playerid); if(IsAJackAble(newstate)) { SendClientMessage(playerid,COLOR_AFOR,"Jacked!"); }else return SendClientMessage(playerid,COLOR_AFOR,"This car is unjackable !"); }else return SendClientMessage(playerid,COLOR_AFOR,"You are not the driver !"); } return 1; }
But It allways tells me that im not the driver .