01.09.2014, 08:02
for example :
when player write /Full
its will do the commands /Life+/Armor
tnx
when player write /Full
its will do the commands /Life+/Armor
tnx
for example :
when player write /Full its will do the commands /Life+/Armor tnx |
#include "a_samp"
#include "YSI\y_commands"
YCMD:life(playerid,params[],help)
{
SendClientMessage(playerid,-1,"LIFE");
return 1;
}
YCMD:armor(playerid,params[],help)
{
SendClientMessage(playerid,-1,"ARMOR");
return 1;
}
YCMD:full(playerid,params[],help)
{
Command_ReProcess(playerid, "/life", false);
Command_ReProcess(playerid, "/armor", false);
return 1;
}
#include <a_samp>
#include <zcmd>
command(full, playerid, params[])
{
#pragma unused params
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
return 1;
}