SA-MP Forums Archive
sendclientmessage - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: sendclientmessage (/showthread.php?tid=146024)



sendclientmessage - shoru93 - 05.05.2010

if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount()) return SendClientMessage(playerid,0xFF0000FF,"You must wait before using a command");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+5000 );

when that tickcount finishes i want to recieve message "you can go in another place now"




Re: sendclientmessage - Andy_McKinley - 05.05.2010

If this is what you mean.
pawn Код:
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"You must wait before using a command");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+5000); return SendClientMessage(playerid, COLOR_RED, "You can now teleport.");



Re: sendclientmessage - shoru93 - 05.05.2010

unreached code