Simple SendClientMessage help nedded
#1

this is the message of my jail system: (one guy from the forum made this)

How i can remove "jail time left"
pawn Код:
forward UnJail3(playerid);
public Unjail3(playerid)
{
    JailTime3[playerid]--;
    new string[100];
    if(JailTime3[playerid] % 5)
    {
        format(string,sizeof(string),"Jail time left: %d seconds.",JailTime3[playerid]);
        SendClientMessage(playerid,0xFFFFFFFF,string);
    }
    if(JailTime3[playerid] <= 0)
    {
        //teleport them out of jail
        JailTime3[playerid] = 0;
        KillTimer(JailTimer3[playerid]);
        SetPlayerPos(playerid, 246.4798,67.8764,1003.6406);
        SetPlayerInterior(playerid, 6);
        SetPlayerVirtualWorld(playerid, -1);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You have been UnJailed, Now try to be a good civilian!");
    }
    return 1;
}
Reply
#2

Delete the message? o.o
Reply
#3

ye, but if i delete the script wont work :/ so can someone delete it because i dunno if delete other thigs... IK is a stupid question but i can give rep!
Reply
#4

pawn Код:
forward UnJail3(playerid);
public Unjail3(playerid)
{
    if(JailTime3[playerid] <= 0)
    {
        //teleport them out of jail
        JailTime3[playerid] = 0;
        KillTimer(JailTimer3[playerid]);
        SetPlayerPos(playerid, 246.4798,67.8764,1003.6406);
        SetPlayerInterior(playerid, 6);
        SetPlayerVirtualWorld(playerid, -1);
        SendClientMessage(playerid, COLOR_GOLD,"[INFO]You have been UnJailed, Now try to be a good civilian!");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)