02.02.2009, 19:03
What CODE?! i am making my own gamemode...
I doo this.. and it kicks me out any vehicle i enter... and displays EROR MESAGE
pawn Код:
public OnPlayerStateChange (playerid, newstate, oldstate)
{
if(GetPlayerVehicleID(playerid) == deathtruck)
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Death_Angel",true) == 0)
{
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: This Vehicle is For DeathAngel ONLY !");
}
return 1;
}