#include <a_samp>forward Checkpoint();forward DM();new time, timeoff;//--------------------------------------------------public Checkpoint(){for(new i=0; i<MAX_PLAYERS; i++){ SetPlayerCheckpoint(i, 1898.8331, 2314.3550, 10.8203, 3.0);// írd át arra a helyre ahol a checkpoint legyen. }}public DM(){for(new i=0; i<MAX_PLAYERS; i++){ SetPlayerPos(i,1898.8331, 2314.3550, 10.8203); DisablePlayerCheckpoint(i); }}public OnFilterScriptInit(){time = SetTimer(\"Checkpoint\", 240000, true);//Csatlakozás után 4percel jelenik meg a checkpoint.timeoff = SetTimer(\"DM\", 480000, true);//Checkpoint 4 perc után eltunik és kirak a dm-bol.return 1;}public OnFilterScriptExit(){ KillTimer(time), KillTimer(timeoff); return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/join\", true) == 0){ if (IsPlayerInCheckpoint(playerid)) { SetPlayerPos(playerid, 1909.5432,2329.2922,10.5981);// írd át arra a helyre ahol van a dm! } else { SendClientMessage(playerid, 0xFFFF00FF, \"Itt nem tudsz jelentkezni!\");// szöveget átírhatod. } return 1;}return 0;}public OnPlayerEnterCheckpoint(playerid){SendClientMessage(playerid, 0xFFFF00FF, \"Lehet jelentkezni dm-re /join parancsal.\");// szöveget átírhatod.return 1;}
Alien.. /join parancsot igy bárhol be lehet irni...
#include <a_samp>forward Checkpoint();forward DM();new bool:vandm[MAX_PLAYERS];new time, timeoff;public Checkpoint(){for(new i=0; i<MAX_PLAYERS; i++){ vandm=true; SetPlayerCheckpoint(i, 1898.8331, 2314.3550, 10.8203, 3.0);}}// írd át arra a helyre ahol a checkpoint legyen.public DM(){for(new i=0; i<MAX_PLAYERS; i++){ vandm=false; DisablePlayerCheckpoint(i);}}public OnFilterScriptInit(){time = SetTimer(\"Checkpoint\", 240000, true);//Csatlakozás után 4percel jelenik meg a checkpoint.timeoff = SetTimer(\"DM\", 480000, true);//Checkpoint 4 perc után eltunik és kirak a dm-bol.return 1;}public OnFilterScriptExit(){ KillTimer(time), KillTimer(timeoff); return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, \"/join\", true) == 0){ if(vandm[playerid]==false) return false; if(vandm[playerid]==true) if(IsPlayerInRangeOfPoint(playerid, 3.0, 1898.8331, 2314.3550, 10.8203)){ SetPlayerPos(playerid, 1,1,1);} else{ SendClientMessage(playerid, 0xFFFF00FF, \"Itt nem tudsz jelentkezni!\");} return 1;} return 0;}