Posts: 149
Threads: 56
Joined: Jul 2014
Reputation:
0
Eu to com a GM Play Shot
Eu me dou o adm 3000 (desenvolvedor)
Mais tem alguns comandos que eu nгo consigo dar tipo
/dargrana
/setgrana
Posts: 602
Threads: 110
Joined: Jan 2013
Reputation:
0
Mano, pega e abre o gm, vai nesses comandos e vк a restriзгo antes de criar um tуpico
Posts: 149
Threads: 56
Joined: Jul 2014
Reputation:
0
//----------------------------------[GiveMoney]------------------------------------------------
if(strcmp(cmd, "/dargrana", true) == 0 || strcmp(cmd, "/setgrana", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /dargrana [id] [grana]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if(ServerOwner[playerid] == 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
ConsumingMoney[playa] = 1;
GivePlayerMoney(playa, money);
format(string,sizeof(string), "AdmAviso: %s {FFFF00}Estб Dando [{80F0FF}R$ %d{FFFF00}] de Dinheiro para: %s",PlayerName(playerid),money,PlayerName(playa) );
ABroadCast(COLOR_YELLOW,string,1);
format(gstring, sizeof(gstring), "** Vocк Recebeu [R$ %d] do Admin: %s Nao Gaste Atoa", money, PlayerName(playerid));
SendClientMessage(playa, COLOR_LIGHTBLUE, gstring);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк Nгo tem altorizaзao para Efetuar esse Comando !");
}
}
return 1;
}
Posts: 149
Threads: 56
Joined: Jul 2014
Reputation:
0
Onde eu boto isso ? Arruma pra mim o codigo e me manda