30.08.2013, 02:39
Ex: Your name bustern
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 411)
{
new pname[50];
if(GetPlayerName(playerid,pname,sizeof(pname) == strval("bustern")))
{
SendClientMessage(playerid,-1,"Welcome to Infernus");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"You't don't have access to use this vehicle");
}
}
return 1;
}