/spec(tate)
#1

Can you help me with: /spec(tate) ; /speclist and /specoff please ? I use GodFather
Reply
#2

I can make you /spec [playerid] and /specoff. I don't know how to make the list.
pawn Код:
#include <a_samp>
#include <zcmd>
pawn Код:
// Defines
#define SPEC_NONE 0
#define SPEC_PLAYER 1
#define SPEC_VEHICLE 2
pawn Код:
// Variables
new
    gSpectateType[MAX_PLAYERS], gSpectateID[MAX_PLAYERS];
pawn Код:
CMD:spec(playerid, params[])
{
    new
        giveid;
    if(sscanf(params, "r", giveid)) return SendClientMessage(playerid, RED, "[ERROR]: Usage: /spec playerid>");
    else if(giveid == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "[ERROR]: That player isn't online!");
    else {
        if(IsPlayerInAnyVehicle(giveid)) {
            TogglePlayerSpectating(playerid, 1);
            PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveid));
            gSpectateID[playerid] = giveid;
            gSpectateType[playerid] = SPEC_VEHICLE;
        }
        else {
            TogglePlayerSpectating(playerid, 1);
            PlayerSpectatePlayer(playerid, giveid);
            gSpectateID[playerid] = giveid;
            gSpectateType[playerid] = SPEC_PLAYER;
        }
    }
    return 1;
}


CMD:specoff(playerid, params[])
{
    TogglePlayerSpectating(playerid, 0);
    gSpectateID[playerid] = INVALID_PLAYER_ID;
    gSpectateType[playerid] = SPEC_NONE;
    return 1;
}
Reply
#3

pls /speclist .. I NEED IT !!!
Reply
#4

Well,

Are you willing to pay as i guess most scripters will want paying
Reply
#5

Quote:
Originally Posted by moehq
Посмотреть сообщение
Well,

Are you willing to pay as i guess most scripters will want paying
Nah, I can help someone without money.
I just don't know how to make the list.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)