29.03.2011, 17:53
Try this
And use [ pawn ] [ /pawn ] tags next time please
pawn Код:
dcmd_jack(playerid,params[])
{
#pragma unused params
new newstate;
if(PlayerInfo[playerid][pJob] != 1) return SendClientMessage(playerid,-COLOR_AFOR,"You are not a car jacker !");
else if(PlayerInfo[playerid][pJob] == 1)
{
if(newstate != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_AFOR,"This car is unjackable !");
newstate = GetPlayerVehicleID(playerid);
if(IsAJackAble(newstate)) return SendClientMessage(playerid,COLOR_AFOR,"Jacked!");
}
return 1;
}