[Мануал] Время На Ввод Пароля

Description: Уроки по скриптингу
Moderator: SJplayer

Invi_Sasha M
Topic author, Мл. сержант
Мл. сержант
Avatar
Invi_Sasha M
Topic author, Мл. сержант
Мл. сержант
Posts: 34
Joined: 20 May 2013
With us: 8 years 2 months

#1by Invi_Sasha » 20 May 2013, 22:12

Делаем время на ввод пароля:


1 способ:

Ко всем forward'am:

Code: Select all

forward PlayerKick(playerid); 



В public OnPlayerConnect(playerid):

Code: Select all

SetTimerEx("PlayerKick",30000,0,"%d",playerid);

Теперь создаем public в конце мода:

public 
PlayerKick(playerid)
{
        if(
gPlayerLogged[playerid] == 0)
        {
                        
SendClientMessage(playeridCOLOR_USE"Ваш текст, бла-бла-бла");
                   
Kick(playerid);
        }
}

 


2 способ:

Code: Select all

stock PlayerKick(playerid)
{
   if(
gPlayerLogged[playerid] == 0)
        {
                        
SendClientMessage(playeridCOLOR_USE"Ваш текст, бла-бла-бла");
                   
Kick(playerid);
        }
}
 

! ! !


Return to “Уроки”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest