11.12.2014, 10:40
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER){
if(IsPlayerInVehicle(playerid,482)){
print("player in burrito");
TogglePlayerDynamicCP(playerid,businesscp_id,1);
}
}
return 1;
}