[Ajuda] 3 dъvidas
#3


pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   
    if(GetVehicleModel(vehicleid) == Modelo ) if(PlayerInfo[playerid][pAdmin] == 0) return RemovePlayerFromVehicle(playerid);  
    return 1;
}
Modelo = Modelo do veiculo(Nao e id nao).

coloque no comando:
pawn Код:
if(PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,-1,"APenas Admins");

pawn Код:
public OnPlayerSpawn(playerid)
{
     if(PlayerInfo[playerid][pAdmin] >= 1) return SetPlayerPos(playerid,x,y,z);
     return 1;
}
X,Y,Z = coordenadas que se for administrador ele nasce.

#FireCat Ninja...
Reply


Messages In This Thread
[Ajuda] 3 dъvidas - by ceesar90 - 09.10.2011, 20:44
Re: 3 dъvidas - by FireCat - 09.10.2011, 20:50
Re: 3 dъvidas - by Dolby - 09.10.2011, 20:54
Re: 3 dъvidas - by ceesar90 - 09.10.2011, 20:55
Re: 3 dъvidas - by FireCat - 09.10.2011, 21:01
Re: 3 dъvidas - by ceesar90 - 09.10.2011, 21:14
Re: 3 dъvidas - by Dolby - 09.10.2011, 21:17
Re: 3 dъvidas - by ceesar90 - 09.10.2011, 21:48

Forum Jump:


Users browsing this thread: 1 Guest(s)