13.06.2014, 12:57
New functions! V1.0
Introduction
New features include a new function brings SAMP, such as X SetPlayerMoney that extablece you money, among other functions.
Functions news
Total aggregate functions 10
More functions are added in future versions.
Are basic functions since they include a basic include
Example
Change log.
Download
Version 1.0;
Pastebin.
Mediafire.
Version 1.1;
Pastebin.
Mediafire.
Include created by ZKDarkOMG.
Introduction
New features include a new function brings SAMP, such as X SetPlayerMoney that extablece you money, among other functions.
Functions news
Total aggregate functions 10
More functions are added in future versions.
pawn Код:
SetPlayerMoney(playerid, money);
SetPlayerHealthandArmour(playerid, health, armour);
SetPlayerPosInteriorWorld(playerid, x, y, z, interior, virtualworld);
DesbugPlayer(playerid);
QuitPlayerHealth(playerid, health);
QuitPlayerArmour(playerid, armour);
QuitPlayerHealthandArmour(playerid, health, armour);
GivePlayerHealth(playerid, health);
GivePlayerArmour(playerid, armour);
GivePlayerHealthandArmour(playerid, health, armour);
Example
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/desbug", true) == 0)
{
DesbugPlayer(playerid);
return 1;
}
if(strcmp(cmdtext, "/quithealthandarmour", true) == 0)
{
QuitPlayerHealthandArmour(playerid, 53, 23);
return 1;
}
if(strcmp(cmdtext, "/money", true) == 0)
{
if(GetPlayerMoney(playerid) == 20000) return SendClientMessage(playerid, -1, "{ff0000}You can not use this command again to spend the money that we gave you.");
SetPlayerMoney(playerid, 20000);
return 1;
}
return 1;
}
Код:
v1.0 - Include create. v1.1 - Add 3 new functions.
Version 1.0;
Pastebin.
Mediafire.
Version 1.1;
Pastebin.
Mediafire.
Include created by ZKDarkOMG.