SetDelay? :D
#1

Is it posible(and how) in sa-mp/pawno create DELAY 'function'?
EX:

pawn Код:
if(strcmp(cmd, "/givemebackmybacemera", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
    SendClientMessage(playerid, COLOR_SHUGAVA, "Your camera will be back in 5 seconds...its busy atm ;) "); //message
    SetDelay(5000);//5000 miliseconds = 5 seconds
    SetCameraBehindPlayer(playerid);
  }
  return 1;
}
:O?
something like TIMER but easyer to use and better looking script :P
Reply
#2

I donґt think so. But if you want, i can create you the timer.
Shall I?
Reply
#3

Quote:
Originally Posted by ||-[NG
-MrBaff-|| ]
Is it posible(and how) in sa-mp/pawno create DELAY 'function'?
EX:

pawn Код:
if(strcmp(cmd, "/givemebackmybacemera", true) == 0)
{
  if(IsPlayerConnected(playerid))
  {
    SendClientMessage(playerid, COLOR_SHUGAVA, "Your camera will be back in 5 seconds...its busy atm ;) "); //message
    SetDelay(5000);//5000 miliseconds = 5 seconds
    SetCameraBehindPlayer(playerid);
  }
  return 1;
}
:O?
something like TIMER but easyer to use and better looking script :P
doubt it, but timers aint hard.
read the wiki.
Quote:

I donґt think so. But if you want, i can create you the timer.
Shall I?

let him read the wiki
i think the best for him is https://sampwiki.blast.hk/wiki/SetTimerEx
but he has to read https://sampwiki.blast.hk/wiki/SetTimer

btw
if you need help in forwards tel us
Reply
#4

Since Pawn is single threaded this is possible, but will stop all things in the script from happening, including updating to other players.
Reply
#5

xD i know how to create timers xD

but i was just wandering is this create-able :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)