if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][szervLeader] == 2 || PlayerInfo[playerid][szervTag] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1|| PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
#include <a_samp> new gate6; forward timer(); public OnFilterScriptInit() { gate6 = CreateObject(980, -964.0781,2729.1299,45.8672, 0, 0, 89.980010986328); } public OnPlayerCommandText(playerid, cmdtext[]) { if( strcmp( \"/hatar\", cmdtext, true ) ) { MoveObject (gate6, -964.0781,2719.1299,45.8672, 5.0); SetTimer(\"timer\", 5000, 0); return 1; } return 0; } public timer() { MoveObject (gate6, -964.0781,2729.1299,45.8672, 5.0); }
#include <a_samp> new gate6; forward timer(); public OnFilterScriptInit() { gate6 = CreateObject(980, -964.0781,2729.1299,45.8672, 0, 0, 89.980010986328); } public OnPlayerCommandText(playerid, cmdtext[]) {//nyitás if( strcmp( \"/hatar\", cmdtext, true ) ) { if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][szervLeader] == 2 || PlayerInfo[playerid][szervTag] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1|| PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6) { //hogy csak ezek a frakciók tudják használni.if(IsPlayerInRangeOfPoint(playerid, 6.5, X,Y,Z)) { //hogy csak ebbe a távolságba lehessen, a 6.5 az a távolság, pl. 6.5m a kaputól. MoveObject (gate6, X,Y,Z, 1, RX,RY,RZ); //A 6 KOORDINÁTA az 1-es az a sebesség. (nyílt koordináta) }}}return 1; //zárás, ugyan olyan mint a nyitás if( strcmp( \"/hatarzar\", cmdtext, true ) ) { if(Admin(playerid, 1) || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][szervLeader] == 2 || PlayerInfo[playerid][szervTag] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1|| PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6) { //hogy csak ezek a frakciók tudják használni.if(IsPlayerInRangeOfPoint(playerid, 6.5, X,Y,Z)) { //hogy csak ebbe a távolságba lehessen, a 6.5 az a távolság, pl. 6.5m a kaputól. MoveObject (gate6, X,Y,Z, 1, RX,RY,RZ); //A 6 KOORDINÁTA az 1-es az a sebesség. (zárt koordináta) }}}return 1;