16.05.2013, 11:15
OK , sorry ! This is for /gotols command
// = Comanda: /gotols
//================================================== ================================================== ================================================== =======
// = Comanda: /gotols
//================================================== ================================================== ================================================== =======
pawn Код:
if(strcmp(cmd, "/gotols", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 2)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
}
SendClientMessage(playerid, COLOR_GRAD1, ""#GAlbastru"[Suceava-RPG]: {ffd700}Ai fost Teleportat cu succes.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, ""#GAlbastru"[Suceava-RPG]: {ffffff}Admin {059e42}[%s]{ffffff} a folosit comanda {f70f0f}[/gotols]", sendername);
SendAdminMessage(COLOR_LIGHTRED,string);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, ""#GAlbastru"[Suceava-RPG]: {ffffff}Ne pare rau, dar nu ai acces la aceasta comanda.");
}
}
return 1;
}