indexed
#16

Quote:
Originally Posted by gamer_Z
Посмотреть сообщение
okay, DELETE the 'Member' From enum and create new Member[Max_PLAYERS] again.
then instead of Playerinfo[playerid][Member] use Member[playerid] and it will be fixed!
leave your onplayerspawn unchanged :P
Hmm...this work perfekt on your self, but when you unjail a player, you respawn ur self on your regular spawnplace, and not the jailed one :O

EDIT: i have solved this in a another way (why didnt i think about this earlier? :S
And it got much smaller
Code
pawn Код:
COMMAND:unjail(playerid, params[])
{
    new id;
    if(sscanf(params,"u", id))return SendClientMessage(playerid, 0x33CCFFAA, "Usage: /Unjail [id]");
    if(IsPlayerConnected(id))
    if(Jail[id] == 0) return SendClientMessage(playerid,red,"That Player is not in jail!");
    if(PlayerInfo[playerid][Admin] >= 1)
    {
        GetPlayerName(playerid, Name, sizeof(Name));
        format(String, sizeof(String), "%s has unjailed you",Name);
        SendClientMessage(id,green, String);
        Jail[id] = 0;
        if(GetPlayerTeam(id) == 0) SetPlayerPos( id, 414.6559,2531.7651,19.1601);
        if(GetPlayerTeam(id) == 1) SetPlayerPos( id, 1607.7803,1169.4840,14.2188);
        if(GetPlayerTeam(id) == 2) SetPlayerPos( id, 1998.3118,-2352.3438,13.5469);
        if(GetPlayerTeam(id) == 3) SetPlayerPos( id, -1468.5074,-206.8094,14.1484);
    }
    return 1;
}
Reply


Messages In This Thread
indexed - by cruising - 05.04.2011, 08:53
Re: indexed - by Gamer_Z - 05.04.2011, 08:56
Re: indexed - by boelie - 05.04.2011, 08:56
Re: indexed - by cruising - 05.04.2011, 09:04
Re: indexed - by cruising - 05.04.2011, 09:07
Re: indexed - by Gamer_Z - 05.04.2011, 09:08
Re: indexed - by cruising - 05.04.2011, 09:11
Re: indexed - by cruising - 05.04.2011, 09:13
Re: indexed - by Gamer_Z - 05.04.2011, 09:13
Re: indexed - by cruising - 05.04.2011, 09:16
Re: indexed - by Gamer_Z - 05.04.2011, 09:20
Re: indexed - by cruising - 05.04.2011, 09:23
Re: indexed - by Gamer_Z - 05.04.2011, 09:24
Re: indexed - by cruising - 05.04.2011, 09:28
Re: indexed - by Gamer_Z - 05.04.2011, 09:33
Re: indexed - by cruising - 05.04.2011, 09:48
Re: indexed - by Gamer_Z - 05.04.2011, 11:32
Re: indexed - by cruising - 05.04.2011, 20:33

Forum Jump:


Users browsing this thread: 2 Guest(s)