29.11.2009, 15:10
pawn Код:
if(strcmp(cmd, "/gotojh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1462.865723, -89.066154, 19.891687);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1462.865723, -89.066154, 19.891687);
}
SendClientMessage(playerid, COLOR_GRAD1, " Teleportiran si");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pAdmin] <= 3)
{
SendClientMessage(playerid, COLOR_GRAD1, " Nisi athoriziran da koristis ovu komandu!");
}
}
return 1;
}