[Ajuda] FilterScript Roubo ao Carro forte
#5

sу acho que o Dieguinho esta ganhando POST com isso .

Topo do GM

PHP Code:
new granaforte[MAX_PLAYERS]; 
Em OnPlayerCommandText

PHP Code:
if(strcmp(cmd"/pegargrana"true) == 0)
{
    if(
PlayerInfo[playerid][pOrg] == 19)
    {
        new 
aname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridanameMAX_PLAYER_NAME);
        new 
string[128];
        
format(stringsizeof(string), "* %s e o Carro Forte estao levando o dinheiro ao banco."aname);
        
SendClientMessageToAll(-1string);
        
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(stringsizeof(string), "* %s e o Carro forte deicharam RS 2,00 no Banco."aname);
        
SendClientMessageToAll(-1string);
        
GivePlayerMoney(playerid2);
        
granaforte[playerid] = 0;
    }
    return 
1;

Agora vocк altera com as configuraзхes do seu GM
Reply


Messages In This Thread
FilterScript Roubo ao Carro forte - by GustavoG3D - 28.02.2014, 00:27
Re: FilterScript Roubo ao Carro forte - by Dieguinho - 28.02.2014, 00:46
Re: FilterScript Roubo ao Carro forte - by GustavoG3D - 28.02.2014, 00:50
Re: FilterScript Roubo ao Carro forte - by Dieguinho - 28.02.2014, 01:16
Re: FilterScript Roubo ao Carro forte - by yNexus - 28.02.2014, 01:23
Re: FilterScript Roubo ao Carro forte - by DannielCooper - 28.02.2014, 02:16
Re: FilterScript Roubo ao Carro forte - by Wanderson_SAMP - 28.02.2014, 17:34

Forum Jump:


Users browsing this thread: 2 Guest(s)