Vehicle spectate problem
#7

No that wouldn't work either :S

pawn Код:
CMD:recon(playerid, params[])
{
    new id, string[128];
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_WHITE, "Niste ovlasteni");
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_WHITE, "/recon [playerid]");
    if(id == INVALID_PLAYER_ID || !IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "Pogresan ID");
    TogglePlayerSpectating(playerid, 1);
    SetPlayerInterior(playerid, GetPlayerInterior(id));
    if(IsPlayerInAnyVehicle(id))
    {
        new specvehicleid = GetPlayerVehicleID(id);
        PlayerSpectateVehicle(playerid, specvehicleid);
    }
    else
    {
        PlayerSpectatePlayer(playerid, id);
    }
    format(string, sizeof(string), "Sada reconas %s, da ga prestanes reconat koristi: /uncon", PlayerName(id));
    SendClientMessage(playerid, Grey, string);
    return 1;
}
Reply


Messages In This Thread
Vehicle spectate problem - by FL3GM4 - 26.12.2012, 20:10
Re: Vehicle spectate problem - by ViniBorn - 26.12.2012, 21:07
Re: Vehicle spectate problem - by FL3GM4 - 26.12.2012, 21:52
Re: Vehicle spectate problem - by zDevon - 27.12.2012, 05:04
Re: Vehicle spectate problem - by FL3GM4 - 27.12.2012, 12:26
Re: Vehicle spectate problem - by [HK]Ryder[AN] - 27.12.2012, 12:29
Re: Vehicle spectate problem - by Threshold - 27.12.2012, 14:36

Forum Jump:


Users browsing this thread: 3 Guest(s)