31.12.2011, 15:34
(
Последний раз редактировалось PlayHard; 31.12.2011 в 19:27.
)
Information:
It's a very simple include that helps you setting time at the freezing function.
How to use?
For example if you decide to make a command that will freeze a player and do something like like kill him, this one is for you. You can use it like this:
For sure you have to insert a time using Milliseconds.
Installation:
In order to let it work copy Freezer.inc to your SA-MP Server directory/Pawno/include and put the following under (#include <a_samp>)
Download:
It's a very simple include that helps you setting time at the freezing function.
How to use?
For example if you decide to make a command that will freeze a player and do something like like kill him, this one is for you. You can use it like this:
pawn Код:
//******'s commands:
YCMD:test(playerid, params[])
{
Freezer(playerid, 5000);
SendClientMessage(playerid, COLOR_GREY, "You've been frozen for 5 seconds");
return 1;
}
//STRCMP:
if (strcmp("/test", cmdtext, true, 10) == 0)
{
Freezer(playerid, 5000);
SendClientMessage(playerid, COLOR_GREY, "You've been frozen for 5 seconds");
return 1;
}
//Zeex's commands:
CMD:test(playerid, params[])
{
Freezer(playerid, 5000);
SendClientMessage(playerid, COLOR_GREY, "You've been frozen for 5 seconds");
return 1;
}
Installation:
In order to let it work copy Freezer.inc to your SA-MP Server directory/Pawno/include and put the following under (#include <a_samp>)
pawn Код:
#include <Freezer>