if(strcmp(cmd, "/addcocoseiall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /addcocoseiall [suma]");
return 1;
}
new money;
money = strval(tmp);
for(new i = 0; i < MAX_PLAYERS; i ++)
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(playerid))
{
if(i != INVALID_PLAYER_ID)
{
PlayerInfo[i][pCocosi] += money;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "ATENTIE ADMINI: %s a dat tututor jucatorilor Online %d Cocosei.", sendername,giveplayer,money);
ABroadCast(COLOR_YELLOW,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat pentru folosirea comenzii!");
}
}
return 1;
}
if(IsPlayerConnected(playerid))
if(IsPlayerConnected(i))
tmp = strtok(cmdtext, idx);
if(strcmp(cmd, "/addcocoseiall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /addcocoseiall [suma]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
new money;
money = strval(tmp);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "ATENTIE ADMINI: %s a dat tututor jucatorilor Online %d Cocosei.", sendername,money);
ABroadCast(COLOR_YELLOW,string,1);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(i != INVALID_PLAYER_ID)
{
PlayerInfo[i][pCocosi] += money;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat pentru folosirea comenzii!");
}
}
return 1;
}
if(strcmp(cmd, "/addcocoseiall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "UTILIZEAZA: /addcocoseiall [suma]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
new money;
money = strval(tmp);
GetPlayerName(playerid, sendername, sizeof(sendername));
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
PlayerInfo[i][pCocosi] += money;
format(string, sizeof(string), "AdmCmd: %s a dat cate %d cocosei la fiecare player Online.",sendername,money);
SendClientMessage(i,COLOR_RED,string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti autorizat pentru folosirea comenzii!");
}
}
return 1;
}
I don't see the text in the picture in the command code. Where is it?
|