SA-MP Forums Archive
[Pedido] /rc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] /rc (/showthread.php?tid=515936)



/rc - yoki - 28.05.2014

ola queridosssssssssssssss preciso de ajuda de voces nisso aki em comando /rc ele nao reseta veiculos sem uso ele reseta todos os veiculos '-' isso e ruim ne sera que alguem pode da uma olhada ai

PHP код:
// This command allows you to change your password for logging in
COMMAND:rc(playeridparams[])
{
    
SendAdminText(playerid"/rc"params);
    if (
APlayerData[playerid][LoggedIn] == true)
    {
        if (
APlayerData[playerid][PlayerLevel] >= 2)
        {
            
SendClientMessageToAll(0x00FF00FF"Todos os veнculos foram resetados pelo admin");
            for(new 
i=0i<MAX_VEHICLESi++)
            {
                
#define VehicleOccupied(i)
                
{
                    
SetVehicleToRespawn(i);
                }
            }
        }
        else
            return 
0;
    }
    else
        return 
0;
    return 
1;




Re: /rc - PT - 28.05.2014

pawn Код:
// This command allows you to change your password for logging in
COMMAND:rc(playerid, params[])
{
    SendAdminText(playerid, "/rc", params);
    if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] >= 2)
    {
        SendClientMessageToAll(0x00FF00FF, "Todos os veнculos foram resetados pelo admin");
        for(new i=0; i<MAX_VEHICLES; i++)
            SetVehicleToRespawn(i);
    }
    return 1;
}



Re: /rc - yoki - 28.05.2014

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
// This command allows you to change your password for logging in
COMMAND:rc(playerid, params[])
{
    SendAdminText(playerid, "/rc", params);
    if (APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] >= 2)
    {
        SendClientMessageToAll(0x00FF00FF, "Todos os veнculos foram resetados pelo admin");
        for(new i=0; i<MAX_VEHICLES; i++)
            SetVehicleToRespawn(i);
    }
    return 1;
}
Vlw cara REEP++