CMD:sendtoooc [playerid]
#2

Here's a way you could do it, just modify it to your needs:


pawn Код:
new InJail[MAX_PLAYERS];

CMD:sendtoooc(playerid, params[])
{
    new targetid;
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "Usage: /sendtoooc (name/id)");
    if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "player is not connected.");
    if(InJail[targetid] == 1)
    {
        SetPlayerPos(targetid, OOCPrisonSpawns[rand][0], OOCPrisonSpawns[rand][1], OOCPrisonSpawns[rand][2]);
    }
    else
    {
        SendClientMessage(playerid, -1, "Player is not in jail.");
    }
    return 1;
}
Reply


Messages In This Thread
CMD:sendtoooc [playerid] - by DamonD - 04.10.2013, 22:09
Re: CMD:sendtoooc [playerid] - by ejb - 04.10.2013, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)