11.02.2013, 16:39
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(newstate == PLAYER_STATE_DRIVER) { new newcar = GetPlayerVehicleID(playerid); TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0; new carid=GetVehicleModel(newcar); if(carid == 0 || carid == 0 || carid == 0) { } else { if(IsAAztecaCar(newcar)) { if(!IsAAzteca(playerid)) { new Float:PlayerPosX,Float:PlayerPosY,Float:PlayerPosZ; GetPlayerPos(playerid,PlayerPosX,PlayerPosY,PlayerPosZ); SetPlayerPos(playerid,PlayerPosX,PlayerPosY,PlayerPosZ); SendClientMessage(playerid, COR_BALLAS, "Vocк nгo й um Azteca!"); } } } }
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)