dcmd_specplayer(playerid, params[]){new Giveplayerid, Name[256], String[256], Name2[256];if (PlayerInfo[playerid][pAdmin] >= 1){if (sscanf(params, \"d\", Giveplayerid)) SendClientMessage(playerid,COLOR_WHITE, \"SERVER: /specplayer [Playerid]\");else if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,COLOR_PURPLE,\"Player not connected?\");else{if ( Specing[Giveplayerid] == 1 ){SendClientMessage(playerid, COLOR_RED, \" The person you have tried to spec is spectating someone else.\");}else{ GetPlayerName(playerid, Name, 256);GetPlayerName(Giveplayerid, Name2, 256);format(String, 256, \"[%i] %s is now spectating [%i] %s\",playerid, Name,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;}dcmd_specoff(playerid, params[]){#pragma unused paramsTogglePlayerSpectating(playerid, 0);Specing[playerid] = 0;return 1;}
dcmd_specplayer(playerid, params[]){ GetPlayerPos(playerid, OldPos[playerid][0], OldPos[playerid][1], OldPos[playerid][2]); GetPlayerFacingAngle(playerid, OldPos[playerid][3]);new Giveplayerid, Name[256], String[256], Name2[256];if (PlayerInfo[playerid][pAdmin] >= 1){if (sscanf(params, \"d\", Giveplayerid)) SendClientMessage(playerid,COLOR_WHITE, \"SERVER: /specplayer [Playerid]\");else if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,COLOR_PURPLE,\"Player not connected?\");else{if ( Specing[Giveplayerid] == 1 ){SendClientMessage(playerid, COLOR_RED, \" The person you have tried to spec is spectating someone else.\");}else{ GetPlayerName(playerid, Name, 256);GetPlayerName(Giveplayerid, Name2, 256);format(String, 256, \"[%i] %s is now spectating [%i] %s\",playerid, Name,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;}dcmd_specoff(playerid, params[]){ SetPlayerPos(playerid, OldPos[playerid][0], OldPos[playerid][1], OldPos[playerid][2]); SetPlayerFacingAngle(playerid, OldPos[playerid][3]);#pragma unused paramsTogglePlayerSpectating(playerid, 0);Specing[playerid] = 0;return 1;}
lol, tv-zés. ki találta ki ezt a kifejezést? spec az megfigyelés. nem televízió nézés
amugy ha ez is PR, akkor miért nem oda lett írva?azokat úgysem nézem meg