28.02.2014, 01:23
sу acho que o Dieguinho esta ganhando POST com isso .
Topo do GM
Em OnPlayerCommandText
Agora vocк altera com as configuraзхes do seu GM
Topo do GM
PHP Code:
new granaforte[MAX_PLAYERS];
PHP Code:
if(strcmp(cmd, "/pegargrana", true) == 0)
{
if(PlayerInfo[playerid][pOrg] == 19)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new string[128];
format(string, sizeof(string), "* %s e o Carro Forte estao levando o dinheiro ao banco.", aname);
SendClientMessageToAll(-1, string);
granaforte[playerid] = 1;
}
else
{
SendClientMessage(playerid, -1, "Vocк nгo й da ORG 19 !");
return 1;
}
}
PHP Code:
if(strcmp(cmd, "/bancograna", true) == 0)
{
if(granaforte[playerid] == 0)
{
SendClientMessage(playerid, -1, "Vocк nгo ta com a grana do carro forte");
return 1;
}
if(granaforte[playerid] == 1)
{
new string[128];
format(string, sizeof(string), "* %s e o Carro forte deicharam RS 2,00 no Banco.", aname);
SendClientMessageToAll(-1, string);
GivePlayerMoney(playerid, 2);
granaforte[playerid] = 0;
}
return 1;
}