Help ...
#1

OK !!
I want .. am
I do /givemoney 0 1000000
But if I do /remove 0
The money player get remove !
I want if the admin give him 10$
so 10$ remove
if 1000000000000000000000
so 1000000000000000000000 remove...
help ?
this my command now
PHP код:
        if(strcmp(tmp"Remove"true) == || strcmp(tmp"R"true) == 0)
        {
        if(
GetAdminLevel(playerid) < && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < && GetTempAdminLevel(playerid) < 1) return SendClientMessage(playeridWhite"רמת הניהול שלך נמוכה");
        if(
activity == 0) return SendClientMessage(playerid,White,"אין פעילות מופעלת");
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) return SendClientMessage(playeridyellow"/Activity Remove [ID] :צורת השימוש");
        
id strval(tmp);
        
SetPlayerMoney(idRemoveAny);
        
format(string,sizeof(string),"ממנצח בפעילות ולכן הכסף שלו הוסר %s הסרת את השחקן",GetName(id));
        
SendClientMessage(playerid,0x48c14ffstring);
        
format(string,sizeof(string),"הסיר אותך ממנצח בפעילות ולכן כספך הוסר %s האדמין",GetName(playerid));
        
SendClientMessage(id,0x48c14ffstring);
        return 
1;
        }
        
        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 [Money] :צורת השימוש");
        
any strval(tmp1);
        if(
any || any 150000)  return SendClientMessage(playeridWhite"סכום הפרס חייב להיות בין 150000 - 1");
        
any strval(tmp1);
        
GivePlayerMoney(idany);
        
format(stringsizeof(string),"%d ניצח בפעילות וקיבל את הסכום %s השחקן"anyGetName(id));
        
SendClientMessageToAll(0x48c14ffstring);
        return 
1;
        } 
Reply


Messages In This Thread
Help ... - by lonako45 - 30.04.2012, 15:38
Re: Help ... - by [KHK]Khalid - 30.04.2012, 16:44
Re: Help ... - by lonako45 - 30.04.2012, 17:02
Re: Help ... - by lonako45 - 30.04.2012, 18:48
Re: Help ... - by Jack_Rocker - 30.04.2012, 18:50
Re: Help ... - by [KHK]Khalid - 30.04.2012, 19:51
Re: Help ... - by lonako45 - 01.05.2012, 12:10
Re: Help ... - by TzAkS. - 01.05.2012, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)