#include <a_samp>new asd;forward Cash();public OnFilterScriptInit(){asd = SetTimer(\"Cash\", 120000, true); // 120000 = 2 percreturn 1;}public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}
Megírtam neked úgy, hogy alapból kapjon mindenki 5000$-t 2 percenként.Ha jól értelmeztem ezt akartad. #include <a_samp>new asd;forward Cash();public OnFilterScriptInit(){asd = SetTimer(\"Cash\", 120000, true); // 120000 = 2 percreturn 1;}public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}
#include <a_samp>new asd;forward Cash();public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}CMD:asd(playerid, params[]){asd = SetTimer(\"Cash\", 120000, true); // 120000 = 2 perc = 2*60000return 1;}
Szia!zcmd formájában? #include <a_samp>new asd;forward Cash();public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}CMD:asd(playerid, params[]){asd = SetTimer(\"Cash\", 120000, true); // 120000 = 2 perc = 2*60000return 1;}
#include <a_samp>#include <zcmd>new asd;forward Cash();public OnFilterScriptInit(){return 1;}public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}CMD:money(playerid, params[]){if(IsPlayerAdmin(playerid) == 1){asd = SetTimer(\"Cash\", 120000, true);SendClientMessage(playerid, -1, \"Mostantól mindenkinek 2 percenként nõ a pénze 5000$-al!\"); }return 1;}CMD:moneyoff(playerid, params[]){if(IsPlayerAdmin(playerid) == 1){KillTimer(asd);SendClientMessage(playerid, -1, \"Mostantól nem kap pénzt senki!\"); }return 1;}
#include <a_samp>#include <zcmd>new asd;forward Cash();public OnFilterScriptInit(){return 1;}public OnFilterScriptExit(){KillTimer(asd);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}CMD:money(playerid, params[]){if(IsPlayerAdmin(playerid) == 1){asd = SetTimer(\"Cash\", 120000, true);SendClientMessage(playerid, -1, \"Mostantól mindenkinek 2 percenként nõ a pénze 5000$-al!\"); }return 1;}CMD:moneyoff(playerid, params[]){if(IsPlayerAdmin(playerid) == 1){KillTimer(asd);SendClientMessage(playerid, -1, \"Mostantól nem kap pénzt senki!\"); }return 1;} Így?
asd mit keres ott? Oda mi illik?[/quote]Átírhatod amire akarod! De ahhoz a változót is írd át a mód elején!
asd mit keres ott? Oda mi illik?Átírhatod amire akarod! De ahhoz a változót is írd át a mód elején! [/quote]Valami konkrétat? Mit fogad el?
asd mit keres ott? Oda mi illik?
#include <a_samp>new penz;forward Cash();public OnFilterScriptExit(){KillTimer(penz);return 1;}public Cash(){ for(new i = 0; i < MAX_PLAYERS; i++){ GivePlayerMoney(i, GetPlayerMoney(i) + 5000);}return 1;}CMD:asd(playerid, params[]){penz = SetTimer(\"Cash\", 120000, true); // 120000 = 2 perc = 2*60000return 1;}