[Ajuda] Adcionar GetPlayerName em um comando!
#5

pawn Код:
CMD:rc(playerid, params[])
{
    iif (APlayerData[playerid][pAdmin] >= 3)
    {
       
        new str[128], bool:vehicle[MAX_VEHICLES], AdminName[24];
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(str, sizeof(str), "{FFFFFF}O Administrador %s Resetou todos os carros sem uso.", AdminName);
        SendClientMessage(playerid, -1, str);

        for(new j = 1; GetVehicleModel(j); ++j)
        {
           
            vehicle[j] = false;
            for(new i, p = GetMaxPlayers(); i < p; ++i)
            {
               
                if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i) )
                continue;

                if(IsPlayerInVehicle(i, j))
                {
                   
                    vehicle[j] = true;
                    break;
                }
            }
            if(!vehicle[j])
            if(!IsTrailerAttachedToVehicle(j))
            SetVehicleToRespawn(j);
        }
    }
    else
    SendClientMessage(playerid, -1, "{FF0000}Vocк nгo tem permissгo para usar este comando!");

    return true;
}
Ai oq eu uso.
Reply


Messages In This Thread
Adcionar GetPlayerName em um comando! - by Vish - 28.10.2013, 21:39
Re: Adcionar GetPlayerName em um comando! - by Diogo123 - 28.10.2013, 21:44
Re: Adcionar GetPlayerName em um comando! - by Vish - 28.10.2013, 21:52
Re : Adcionar GetPlayerName em um comando! - by ThiagoMK - 28.10.2013, 21:55
Re: Adcionar GetPlayerName em um comando! - by CharlieBrown - 28.10.2013, 21:57
Re: Adcionar GetPlayerName em um comando! - by Vish - 28.10.2013, 21:57
Re: Adcionar GetPlayerName em um comando! - by TheMing - 28.10.2013, 21:57
Re: Adcionar GetPlayerName em um comando! - by Hiuship - 28.10.2013, 22:00
Re: Adcionar GetPlayerName em um comando! - by CharlieBrown - 28.10.2013, 22:01
Re: Adcionar GetPlayerName em um comando! - by Diogo123 - 28.10.2013, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)