if(strcmp(cmd, "/givemoney", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 6) return 1;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "/givemoney [playerid] [money]");
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
new money = strval(tmp);
if(!IsPlayerConnected(giveplayerid)) return 1;
if(giveplayerid != INVALID_PLAYER_ID)
{
GivePlayerMoney(giveplayerid, money);
format(string, sizeof(string), "Вы выдали игроку волюту %d $", money);
SendClientMessage(playerid, COLOR_BLUE, string);
format(string, sizeof(string), "Администратор выдал вам волюту в размере %d $", money);
SendClientMessage(giveplayerid, COLOR_ORANGE, string);
}
}
return 1;
}