/jail command.
#8

Quote:
Originally Posted by FuNkYTheGreat
View Post
Try this tutorial it has everything you need
https://sampforum.blast.hk/showthread.php?tid=381425
Thanks Alot


Quote:
Originally Posted by Dayrion
View Post
Alright.
There is 2 types of timer in SA:MP.
- SetTimer(funcname[], interval, repeating)
- SetTimerEx(funcname[], interval, repeating, const format[], {Float,_}:...)
The difference between those timers is one can't take parameters (the first).

How does this works?
Let's respawn a player in 10 seconds after do /respawn.
Copy and paste in your gamemode to see the comments.
PHP Code:
// Code ...
SetTimerEx("RespawnPlayer"10000false"i"playerid);
//             ^ The name of the function which timer wille execute after x seconds.
//                              ^ Time before the timer execut the function
//                                    ^ If we want to repeat this (execute a function after x seconds, usefull for anti-cheat checking)
//                                           ^ Our function called RespawnPlayer have 1 parameter : playerid and playerid is an integer so "i"
//                                                    ^ To complete the "i"
public RespawnPlayer(playerid)
{
    
SpawnPlayer(playerid);
    return 
1;

THANK U VERY MUCH!!! 😘
Reply


Messages In This Thread
/jail command. - by oktokt1 - 03.07.2016, 16:07
Re: /jail command. - by Dayrion - 03.07.2016, 16:26
Re: /jail command. - by oktokt1 - 03.07.2016, 16:50
Re: /jail command. - by Dayrion - 03.07.2016, 17:00
Re: /jail command. - by oktokt1 - 03.07.2016, 17:33
Re: /jail command. - by Dayrion - 03.07.2016, 18:30
Re: /jail command. - by FuNkYTheGreat - 03.07.2016, 18:38
Re: /jail command. - by oktokt1 - 03.07.2016, 23:10
Re: /jail command. - by Dayrion - 03.07.2016, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)