30.03.2018, 19:15
how can I make this check functionally?
my code(not working)
my code(not working)
PHP код:
new xtrailer;
public OnGameModeInit()
{
xtrailer = AddStaticVehicleEx(591, 1800.7312,630.3682,10.8203,278.7035, 001, 001, -1, 0);
return 1;
}
CMD:test(playerid)
{
if( GetVehicleModel( GetVehicleTrailer( GetPlayerVehicleID(playerid) ) ) == xtrailer)
{
//Command stuff
}
else return SendClientMessage(playerid, -1, "ERROR: You must attach a (xtrailer) trailer to your vehicle first!");
return 0;
}