[Ajuda] Sistema de Radares
#3

aqui esta o comando /dargrana, o que faзo agora ?

Quote:

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 (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 3000)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
ConsumingMoney[playa] = 1;
GranaBlack(playa, money);
format(string,sizeof(string), "AdmAviso: %s {FFFF00}Estб Dando [{80F0FF}R$ %d{FFFF00}] de Dinheiro para:{80E3FF} %s",PlayerName(playerid),money,PlayerName(playa) );
ABroadCast(COLOR_YELLOW,string,1);
format(gstring, sizeof(gstring), "** Vocк Recebeu R$ %d do Admin: %s", money, PlayerName(playerid));
SendClientMessage(playa, COLOR_LIGHTBLUE, gstring);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return 1;
}

Reply


Messages In This Thread
Sistema de Radares - by WillardsGL - 04.01.2014, 02:09
Re: Sistema de Radares - by Gii - 04.01.2014, 02:15
Re: Sistema de Radares - by WillardsGL - 04.01.2014, 02:21
Re: Sistema de Radares - by Gii - 04.01.2014, 02:36
Re: Sistema de Radares - by WillardsGL - 04.01.2014, 02:50

Forum Jump:


Users browsing this thread: 1 Guest(s)