bool talán?
( zcmd-vel irom :) )
#include <a_samp>
#include <zcmd>
#include <sscanf2>
new Float:cmdhp;
new bool:hpcmd[MAX_PLAYERS];
CMD:hp(playerid, params[])
{
if(sscanf(params, \"f\", cmdhp)) return SendClientMessage(playerid, /* szín */, \"Használat: /hp [mennyiség]\");
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerHealth(i, cmdhp);
hpcmd = true;
}
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(hpcmd[playerid] == true)
{
SetPlayerHealth(playerid, cmdhp);
}
else
{
//Ami normál esetben történne
}
return 1;
}