[Ajuda] 3 dъvidas
#5

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение

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...
Escrevo rapido (:
96 palavras por minuto.
Teste de rapidez (:
Quote:
Originally Posted by ceesar90
Посмотреть сообщение
Mas e se na primeira dъvida for 1 carro criado pelo MTA e convertido para SAMP, exemplo uma hq entende? como ficaria?
Tipo, por exemplo sу quero rcon admins para infernos
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicle)
{
    if(GetVehicleModel(vehicleid) == 411)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Sу admins й que podem usar infernus!"),RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
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: 2 Guest(s)