Small problem
#5

try this

pawn Код:
if(strcmp(cmd, "/unjail", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] < 1)
    {
        SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
        return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unjail [playerid/PartOfName]");
        return 1;
    }
    new giveplayerid = ReturnUser(tmp);
    if(giveplayerid == INVALID_PLAYER_ID)
    {
        SendClientMessage(playerid, COLOR_WHITE, "   Player not found !");
        return 1;
    }
    KillTimer(unajailtimer);
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    SetPlayerInterior(giveplayerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[giveplayerid][pVirtualWorld] = 0;
    SetPlayerPos(giveplayerid, 533.8759,-1675.7471,18.7500,353.4335);
    SetPlayerFacingAngle(giveplayerid, 90);
    format(string,sizeof(string),"Admin %s has unjailed you.", RemoveUnderScore(playerid));
    SendClientMessage(giveplayerid, COLOR_BLUE, string);
    return 1;
}
thank you
Reply


Messages In This Thread
Small problem - by whando - 15.11.2013, 15:38
Re: Small problem - by Mattakil - 15.11.2013, 15:54
Re: Small problem - by whando - 15.11.2013, 20:43
Re: Small problem - by Jefff - 15.11.2013, 20:51
Re: Small problem - by ReD_DeVi - 15.11.2013, 20:56
Re: Small problem - by whando - 15.11.2013, 21:09
Re: Small problem - by whando - 15.11.2013, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)