[pawn]if(GetPlayerScore(playerid) == 1000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 1-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:3 db gránát,és $250 000.\"); GivePlayerMoney(playerid, 250000); GivePlayerWeapon(playerid, 16, 3); return 1; } if(GetPlayerScore(playerid) == 1500) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 2-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:3 db lõszerrel egy rakétavetõ,és $500 000.\"); GivePlayerMoney(playerid, 500000); GivePlayerWeapon(playerid, 35, 3); return 1; } if(GetPlayerScore(playerid) == 2300) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 3-as szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:10 db gránát,és $750 000.\"); GivePlayerMoney(playerid, 750000); GivePlayerWeapon(playerid, 16, 10); return 1; } if(GetPlayerScore(playerid) == 3000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 4-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:5 db lõszerrel egy hõkövetõ rakéta,és $1 250 000.\"); GivePlayerMoney(playerid, 1250000); GivePlayerWeapon(playerid, 36, 5); return 1; } if(GetPlayerScore(playerid) == 5000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 5-ös szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:5 db gránát,7 lõszerrel egy rakétavetõ,és $2 000 000.\"); GivePlayerMoney(playerid, 2000000); GivePlayerWeapon(playerid, 16, 5); GivePlayerWeapon(playerid, 35, 7); return 1; }[/pawn]
forward pontok(playerid);new PontTimer;
PontTimer = SetTimer(\"Üzenet\", 1, 1);
talán így.[pawn]#include <a_samp>forward Pontok(playerid);public OnFilterScriptInit() {SetTimer(\"Pontok\", 1000, true); // Timer létrehozása.//Szintaxis: (\"a callback neve\", idõ(ezredmásodpercbe), ismétlõdjön-e)return 1;}public OnFilterScriptExit() {return 1;}public Pontok(playerid) { if(GetPlayerScore(playerid) == 1000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 1-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:3 db gránát,és $250 000.\"); GivePlayerMoney(playerid, 250000); GivePlayerWeapon(playerid, 16, 3); return 1; } else if(GetPlayerScore(playerid) == 1500) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 2-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:3 db lõszerrel egy rakétavetõ,és $500 000.\"); GivePlayerMoney(playerid, 500000); GivePlayerWeapon(playerid, 35, 3); return 1; } else if(GetPlayerScore(playerid) == 2300) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 3-as szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:10 db gránát,és $750 000.\"); GivePlayerMoney(playerid, 750000); GivePlayerWeapon(playerid, 16, 10); return 1; } else if(GetPlayerScore(playerid) == 3000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 4-es szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:5 db lõszerrel egy hõkövetõ rakéta,és $1 250 000.\"); GivePlayerMoney(playerid, 1250000); GivePlayerWeapon(playerid, 36, 5); return 1; } else if(GetPlayerScore(playerid) == 5000) { SendClientMessage(playerid, 0x00FF00FF, \"Level Up!Grat. a 5-ös szinthez.\"); SendClientMessage(playerid, 0xFF0000FF, \"Jutalmad:5 db gránát,7 lõszerrel egy rakétavetõ,és $2 000 000.\"); GivePlayerMoney(playerid, 2000000); GivePlayerWeapon(playerid, 16, 5); GivePlayerWeapon(playerid, 35, 7); return 1; } return 1;}[/pawn]
Változóval..
new Pontok[MAX_PLAYERS];
public OnPlayerConnect(playerid) { SetTimerEx(\"Pontok\", 1000, 1, \"d\", playerid); return 1;}