ocmd:spec(playerid, params[])
{
new Giveplayerid,String[256], Name2[256];
if(GetPVarInt(playerid,"Adminlevel") <2)return SendClientMessage(playerid,Rot,"Dazu bist Du nicht befugt.");
{
if (sscanf(params, "d", (Giveplayerid)) SendClientMessage(playerid, Blau,"Benutzung: /Spec [ID]");
if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,Rot,"[Fehler] {FFFFFF}Der Spieler ist nicht Online.");
{
if (Specing[Giveplayerid] == 1 )
{
SendClientMessage(playerid, Rot,"[Fehler] {FFFFFF}Der Spieler wird bereit geSpected.");
}
else
{
GetPlayerName(playerid,Name2,256);
GetPlayerName(Giveplayerid, Name2, 256);
format(String, 256, "Admin Control]{FF6E00}[%i]{FFFFFF} {FF6E00}%s{FFFFFF} spect nun {FF6E00}[%i]{FFFFFF} {FF6E00}%s{FFFFFF}",playerid,Giveplayerid, Name2));
CallLocalFunction("ircRemoteSay", "iss", 1, "#FSE", String);
Specing[playerid] = 1;
}
if ( !IsPlayerInAnyVehicle(Giveplayerid))
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, Giveplayerid);
SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
return 1;
}
else
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Giveplayerid));
SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
return 1;
}
}
}
return 1;
}
ocmd:specoff(playerid, params[])
{
#pragma unused params
TogglePlayerSpectating(playerid, 0);
Specing[playerid] = 0;
return 1;
}
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(6) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 017: undefined symbol "Specing"
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : warning 215: expression has no effect
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 001: expected token: ";", but found "]"
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : error 029: invalid expression, assumed zero
C:\Users\Giuseppe\Desktop\MyServer\gamemodes\Life-of-War.pwn(9) : fatal error 107: too many error messages on one line