[Ajuda] Respawn
#2

pawn Код:
CMD:respawn(playerid, params[])
{
    SendAdminText(playerid, "/respawn", params);
    if(APlayerData[playerid][PlayerLevel] >= 4)
    {
        new str[128], AdminName[24];
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        format(str, sizeof(str), "{a9c4e4}Administrador {FFFFFF}%s {a9c4e4}respawnou todos os veiculos desoucupados!", AdminName);
        SendClientMessageToAll(-1, str);

        for(new i; i < MAX_VEHICLES; i++)
            if(!IsVehicleInUse(i))
                SetVehicleToRespawn(i);
    }
    else
        SendClientMessage(playerid, -1, "{ff0000}Vocк nгo tem permissгo para usar este comando!");

    return true;
}
Reply


Messages In This Thread
Respawn - by GHLEMES - 20.06.2014, 17:49
Re: Respawn - by CrazyHelp - 20.06.2014, 18:05
Re: Respawn - by GHLEMES - 20.06.2014, 20:11
Re: Respawn - by GHLEMES - 21.06.2014, 02:14
Re: Respawn - by lHesoyaml - 21.06.2014, 10:59
Re: Respawn - by GHLEMES - 21.06.2014, 19:25
Re: Respawn - by lHesoyaml - 22.06.2014, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)