04.08.2015, 23:06
Guyz what's wrong here?
I m trying to add if player is in mission and his truck trailer get away so it player get this message but its not working
I m trying to add if player is in mission and his truck trailer get away so it player get this message but its not working
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(pData[playerid][pMission] == MISSION_TYPE_TRUCK_2)
{
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(!IsTrailerAttachedToVehicle(vehicleid))
{
return SendClientMessage(playerid, RED, "ATTACT TRAILR");
}
}
}