13.03.2011, 22:11
Uff xD ... si te va mal el spec copialo de algъn gm que lo tenga bien.
Te paso ese que es el mio.
pawn Код:
zcmd(specplayer, playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 1) return Message(playerid, COLOR_GRAD2, "No eres administrador!");
if (sscanf(params, "u", params[0])) return Message(playerid,COLOR_GRAD2, "Utiliza: /specplayer <PlayerID>");
if(!IsPlayerConnected(params[0])) Message(playerid,COLOR_GRAD2,"Jugador no conectado");
else
{
if (!IsPlayerInAnyVehicle(params[0]))
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, params[0]);
SetPlayerInterior(playerid,GetPlayerInterior(params[0]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(params[0]));
return 1;
}
else
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(params[0]));
SetPlayerInterior(playerid,GetPlayerInterior(params[0]));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(params[0]));
return 1;
}
}
return 1;
}
zcmd(specoff, playerid, params[])
{
return TogglePlayerSpectating(playerid, 0);
}