Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Putin ajutor?

$
0
0
Salut, am si eu o problema... Nu stiu cum implementez asta
Quote:

if(PlayerInfo[plo][NoTP] == 0)
in aceasta comanda
Quote:

CMD:goto(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa fii logat.");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pVip] >= 1)
{
new id,string[256],sendername[30],giveplayer[30];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B98300}Foloseste:{FFFFFF} /goto <Name/Playerid>");
{
if(id != INVALID_PLAYER_ID)
{
new Float:ax,Float:ay,Float:az;
GetPlayerPos(playerid,ax,ay,az);
posxxx[playerid] = ax;
posyyy[playerid] = ay;
poszzz[playerid] = az;
new Float: x, Float:y, Float:z;
GetPlayerPos(id, x, y, z);
new tmpcar = GetPlayerVehicleID(playerid);
if (GetPlayerState(playerid) == 2)
{
SetVehiclePos(tmpcar, x, y+4, z);
}
else
{
SetPlayerPosEx(playerid,x,y+2, z);
}
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id));
SetPlayerInterior(playerid, GetPlayerInterior(id));
if(InHouse[id] > 0)
{
InHouse[playerid] = InHouse[id];
if(strlen(housestring[InHouse[playerid]]) > 0)
{
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, housestring[InHouse[playerid]]);
}
}
if(InHQ[id] > 0)
{
InHQ[playerid] = InHQ[id];
}
if(InBussines[id] > 0)
{
InBussines[playerid] = InBussines[id];
}
GetPlayerName(playerid,sendername,sizeof(sendernam e));
GetPlayerName(id,giveplayer,sizeof(giveplayer));
format(string,sizeof(string),"Te-ai teleportat la %s.",giveplayer);
SendClientMessage(playerid, COLOR_GRAD1, string);
//format(string,sizeof(string),"Admin %s teleported to you.",sendername);
//SendClientMessage(id, COLOR_GRAD1, string);
format(string,sizeof(string),"{990000}Staff Info: {FF6347}%s used /goto on %s.",sendername,giveplayer);
if(PlayerInfo[id][pAdmin] > 0 || PlayerInfo[id][pHelper] > 0)
{
ABroadCast(COLOR_YELLOW,string,1);
}
Adminlog(string);
}
else return SendClientMessage(playerid, COLOR_WHITE, "{B98300}Server: {FFFFFF}Acest jucator nu este {33FF00}Online{FFFFFF}!");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{5CAD5C}Error: Your admin/helper level isn't high enough to use this command.");
}
return 1;
}
Si functia aceea este pentru a nu se putea teleporta UN admin/helper la tine in timp ce ai comanda activata .

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>