10.05.2014, 10:57
(
Последний раз редактировалось NoahF; 10.05.2014 в 11:05.
Причина: EDITED AGAIN
)
Ok, what's wrong with this code?
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetVehicleModel(vehicleid);
if(vehicleid) == 487)
{
if(isPilot[playerid] == 1)
{
if(newstate == 2)
{
PutPlayerInVehicle(playerid, vehicleid, 0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You must be the Pilot class to fly helicopters.");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}