Esperanto
Дебютант
При использовании камеру в жопе фиксирует и я пялюсь на мост. Хелп
Код:
YCMD:spec(playerid,params[],help)
{
if(PlayerInfo[playerid][pAdmin] < 1) return true;
new Float:x; new Float:y; new Float:z;
if(GetPVarInt(playerid,"Spectating")>0)
{
SetPlayerPos(playerid,GetPVarFloat(playerid,"SpecX"),GetPVarFloat(playerid,"SpecY"),GetPVarFloat(playerid,"SpecZ"));
SetPVarInt(playerid,"Spectating",0);
TogglePlayerSpectating(playerid,0);
return true;
}
if(sscanf(params,"d",params[0])) return SendClientMessage(playerid,-1,"эбола");
if(params[0]==playerid) return true;
GetPlayerPos(playerid,x,y,z);
SetPVarFloat(playerid,"SpecX",x);
SetPVarFloat(playerid,"SpecY",y);
SetPVarFloat(playerid,"SpecZ",z);
SetPVarInt(playerid,"Spectating",1);
PlayerSpectatePlayer(playerid,params[0],SPECTATE_MODE_NORMAL);
TogglePlayerSpectating(playerid,1);
return true;
}
