24.06.2013, 09:17
Eu tenho esse comando no meu gamemode, vou postar aqui , eu tenho como tu queres , mete no teu gamemode e adiciona as includes e dps vк-se funciona ... Obvio que vais ter de definir algumas coisas , mas tenta :3
pawn Код:
if(strcmp(cmd, "/darguito", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "*{C0C0C0} Uso:{FFFFFF} /darguito [playerid] [money]");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 20)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GivePlayerEuros(playa, money);
format(string, sizeof(string), "- %s Criou $%d para %s.", GetPlayerNameEx(playerid), money, GetPlayerNameEx(playa));
GuitoLog(string);
}
}
}
else
{
SendClientMessage(playerid,COLOR_RED,SEM_NIVEL);
}
}
return 1;
}

