[AJUDA] Comando de admin
#4

pawn Код:
if(strcmp(cmd, "/darscore", true) == 0)
{
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use /darscore id lvl");
   new giveplayerid = ReturnUser(tmp);
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Use /darscore id lvl");
   new score = strval(tmp);
   new AdminName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
   GetPlayerName(playerid,AdminName,sizeof(AdminName));
   GetPlayerName(giveplayerid,pName,sizeof(pName));
   new pScore = GetPlayerScore(giveplayerid);
   SetPlayerScore(giveplayerid,pScore+score);
   new string[0x3C*2];
   format(string,sizeof(string),"O RCON ADMIN %s(id:%i) setou o score do jogador %s(id:%i) para %i TOTAL: %i",AdminName,playerid,pName,giveplayerid,iScore,pScore+score);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 0x01;
}
Reply


Messages In This Thread
[AJUDA] Comando de admin - by mengueh - 15.06.2011, 23:18
Re: [AJUDA] Comando de admin - by Dark.Angel - 15.06.2011, 23:46
Re: [AJUDA] Comando de admin - by mengueh - 15.06.2011, 23:57
Re: [AJUDA] Comando de admin - by Ricop522 - 16.06.2011, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)