Simple SendClientMessage help nedded - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Simple SendClientMessage help nedded (
/showthread.php?tid=309134)
Simple SendClientMessage help nedded -
Gooday - 06.01.2012
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;
}
Re: Simple SendClientMessage help nedded -
Vince - 06.01.2012
Delete the message? o.o
Re: Simple SendClientMessage help nedded -
Gooday - 06.01.2012
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!
Re: Simple SendClientMessage help nedded -
Luis- - 06.01.2012
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;
}