28.06.2015, 03:45
O Comando Esta Indo Sem Botar o Id da pessoa /trazer traz eu msm '-' /limparadmin limpa eu msm
PHP код:
CMD:limparadmin(playerid, params[])
{
new id, player[MAX_PLAYER_NAME], tirou[MAX_PLAYER_NAME], string[256], string2[256];
if (pAdmin[playerid][Level] != 5) return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб autorizado.");
if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xAD0000AA, "Use /limparadmin [ID] ");
if (pAdmin[id][Level] < 1) return SendClientMessage(playerid, VERMELHO, "Este player nгo й admin ! ");
GetPlayerName(id, player, sizeof(player));
GetPlayerName(playerid, tirou, sizeof(tirou));
format(string, sizeof(string), "Vocк tirou o admin do %s", player);
SendClientMessage(playerid, 0x00F6F6AA, string);
format(string2, sizeof(string2), "O admin %s tirou seu admin.", tirou);
SendClientMessage(id, VERDE, string2);
pAdmin[playerid][Level] = 0;
return 1;
}
PHP код:
CMD:trazer(playerid, params[])
{
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, VERMELHO,"Vocк nгo estб autorizado.");
new id, Float: x, Float: y, Float: z, string[256], string2[256], namep[MAX_PLAYER_NAME], namead[MAX_PLAYER_NAME];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, VERMELHO,"Use /trazer [ID]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO,"Este jogador nгo estб online.");
GetPlayerName(playerid, namead, sizeof(namead));
GetPlayerName(id, namep, sizeof(namep));
format(string, sizeof(string), "Trouxe o player %s atй vocк.", namep);
format(string2, sizeof(string2), "O Administrador %s trouxe vocк atй ele.", namead);
SendClientMessage(playerid, PURPLE, string);
SendClientMessage(id, VERDE, string2);
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(id, x+1, y+1, z);
return 1;
}