Help command one time
#1

This is the command:
PHP код:
if(strcmp(tmp"GiveMoney"true) == || strcmp(tmp"Gm"true) == 0)
        {
        if(
GetAdminLevel(playerid) < && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < && GetTempAdminLevel(playerid) < 1) return SendClientMessage(playeridWhite"шоъ дрйдем щмк роелд");
        if(
activity == 0) return SendClientMessage(playeridWhite"лгй мъъ мщзчп фшс цшйлд мдйеъ фтймеъ оефтмъ");
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) return SendClientMessage(playeridyellow"/Activity GiveMoney(Gm) [id] [Money] :цешъ дщйоещ");
        
id strval(tmp);
        
tmp1 strtok(cmdtextidx);
        if(!
strlen(tmp1)) return SendClientMessage(playeridyellow"/Activity GiveMoney ID [Money] :цешъ дщйоещ");
        
any strval(tmp1);
        if(
any || any 150000)  return SendClientMessage(playeridWhite"слен дфшс зййб мдйеъ бйп 150000 - 1");
        
any strval(tmp1);
        
GivePlayerMoney(idany);
        
SetPVarInt(playerid"GivenMoney"any);
        
format(stringsizeof(string),"%d рйцз бфтймеъ ечйбм аъ дслен %s дщзчп"anyGetName(id));
        
SendClientMessageToAll(0x48c14ffstring);
        return 
1;
        } 
I want if i do /GiveMoney 0 100000
its give him but if i write the command again to id its write me : This player get money!
Get it ?
Help ?
Reply


Messages In This Thread
Help command one time - by lonako45 - 02.05.2012, 14:27
Re: Help command one time - by lonako45 - 02.05.2012, 18:51
Re: Help command one time - by ViniBorn - 02.05.2012, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)