- 0
problema /gethere
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
KrsGabriel
Problema intalnita (descriere): Nu poti da gethere la un player fara /aod pornit sau la un admin mai mare decat tine
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul:
if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { if(PlayerInfo[playerid][pAdmin] < 1339) { f(AdminDuty[playerid] == 0 && HelperDuty[playerid] == 0) { SendClientMessage(playerid,COLOR_GREY,"[Server]: Trebuie sa fii OnDuty !"); return 1; } } if(PlayerInfo[plo][pJailed] == 1) { SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player nu sia terminat inca sentinta (/jl) !"); return 1; } if(WantedLevel[plo] >= 1) { SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted,este posibil sa fie urmarit de politie !"); return 1; } if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin]) { SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !"); return 1; } GetPlayerPos(playerid, plocx, plocy, plocz); if(GetPlayerInterior(playerid) > 0) { SetPlayerInterior(plo,GetPlayerInterior(playerid)); PlayerInfo[plo][pInt] = GetPlayerInterior(playerid); PlayerInfo[plo][pVirWorld] = GetPlayerVirtualWorld(playerid); SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid)); } if(GetPlayerInterior(playerid) == 0) { SetPlayerInterior(plo,0); PlayerInfo[plo][pVirWorld] = 0; SetPlayerVirtualWorld(plo,0); } if(plocz > 930.0 && GetPlayerInterior(playerid) == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; PlayerInfo[plo][pVirWorld] = 1; SetPlayerVirtualWorld(plo,1); } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(plo, playername, sizeof(playername)); format(string, 256, "** Admin %s tea teleportat la el.", sendername); SendClientMessage(plo, COLOR__CYAN, string); new arank[64]; if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; } else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; } else { arank = "Virus"; } format(string, sizeof(string), "[%s]: %s la teleportat la el pe %s.", arank,sendername,playername); SendHelperMessage(COLOR_YELLOW, string); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s la teleportat la el pe %s.",d,m,y,h,mi,s,sendername,playername); AdminActivity(string); } else { SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Tu nu esti autorizat sa foloesti aceasta comanda!"); } } } else { format(string, sizeof(string), "[Server]: %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }Imagini / Video (optional): ---
Ati incercat sa rezolvati singur?: da dar numai merge deloc comanda
3 answers to this question
Recommended Posts