[Include] New functions [Simple and basic]
#1

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.


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);
Are basic functions since they include a basic include

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;
}
Change log.


Код:
v1.0

- Include create.

v1.1

- Add 3 new functions.
Download


Version 1.0;
Pastebin.
Mediafire.

Version 1.1;
Pastebin.
Mediafire.

Include created by ZKDarkOMG.

Reply


Messages In This Thread
New functions [Simple and basic] - by ZKDarkOMG - 13.06.2014, 12:57
Re: New functions [Simple and basic] - by RajatPawar - 13.06.2014, 13:03
Re: New functions [Simple and basic] - by iZN - 13.06.2014, 13:05
Re: New functions [Simple and basic] - by nilanjay - 13.06.2014, 13:06
Respuesta: New functions [Simple and basic] - by ZKDarkOMG - 13.06.2014, 13:09
Re: Respuesta: New functions [Simple and basic] - by iZN - 13.06.2014, 13:10
Respuesta: New functions [Simple and basic] - by ZKDarkOMG - 13.06.2014, 13:12
Re: Respuesta: New functions [Simple and basic] - by Vince - 13.06.2014, 13:19
Re: New functions [Simple and basic] - by NewerthRoleplay - 13.06.2014, 14:16
Re: Respuesta: New functions [Simple and basic] - by RajatPawar - 13.06.2014, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)