GivePlayerMoney(i, GetPlayerMoney(i) + 5000);
GivePlayerMoney(i, 5000);
Ez is az csak hibátlanul. #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;}
new asd;KillTimer(asd);asd = SetTimer(\"Cash\", 120000, true);
new penz;KillTimer(penz);penz = SetTimer(\"Cash\", 120000, true);