02.02.2009, 19:16
Try this.
pawn Код:
public OnPlayerStateChange (playerid, newstate, oldstate)
{
if(GetPlayerVehicleID(playerid) == deathtruck)
GetPlayerName(playerid, name, sizeof(name));
if(!strcmp("Death_Angel",name,true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: This Vehicle is For DeathAngel ONLY !");
}
return 1;
}