- 0
Ajutor in legatura cu comanda /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
Chescu
Salut , am o protectie anti abuz la acesta comanda si as vrea sa o scot
Ma puteti ajuta? Multumesc
if(strcmp(cmd, "/gethere", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendUsage(playerid,"/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(Goto[plo] == 1)
{
if (PlayerData[playerid][pAdmin] >= 1 || PlayerData[playerid][pAgent] >= 1)
{
GetPlayerPos(playerid, plocx, plocy, plocz);
SetPlayerInterior(plo,GetPlayerInterior(playerid));
PlayerData[plo][pInt] = GetPlayerInterior(playerid);
PlayerData[plo][pLocal] = PlayerData[playerid][pLocal];
if(PlayerData[playerid][pInt] == 0)
{
SetPlayerInterior(plo,0);
}
if(plocz > 930.0 && PlayerData[playerid][pInt] == 0)
{
SetPlayerInterior(plo,1);
PlayerData[plo][pInt] = 1;
}
if (GetPlayerState(plo) == 2)
{
new tmpcar = GetPlayerVehicleID(plo);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
}
else
{
SetPlayerPos(plo,plocx,plocy+2, plocz);
}
SendClientMessage(plo, COLOR_LIGHTGREEN, "Ai fost teleportat cu succes!");
foreach(Player, i)
{
if(PlayerData[pAdmin] >= 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(plo, giveplayer,sizeof(giveplayer));
format(string, sizeof(string), "{43D1D1}[Admin/Agent]{FFFFFF}%s l-a adus langa el pe playerul {43D1D1}%s.", sendername,giveplayer);
SendClientMessage(i, COLOR_LIGHTRED, string);
}
}
}
else
{
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Acel player nu a dat /ajutor sau /report !");
}
}
}
else
{
format(string, sizeof(string), "%d nu este conectat.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
11 answers to this question
Recommended Posts