SA-MP Forums Archive
LuxAdmin Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: LuxAdmin Help (/showthread.php?tid=466668)



LuxAdmin Help - Rockstar128 - 28.09.2013

I recently installed a gamemode and now i want to add luxadmin system to my gamemode. I dont know where to put if(strcmp(cmd, "/healme", true) == 0)
{
if(IsPlayerVipMember(playerid))
{
SetPlayerHealth(playerid, 100);
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Vip Member!");
return 1;
}
this type of texts bcoz i dont know anything about scripting cana anyone help me through teamviewer please!!


Re: LuxAdmin Help - rishabh1x - 29.09.2013

put it in
public OnPlayerCommandText
{
//here ur lines
}


Re: LuxAdmin Help - Jackston - 29.09.2013

Код:
public OnPlayerCommandText
{
if(strcmp(cmd, "/healme", true) == 0)
{
if(IsPlayerVipMember(playerid))
{
SetPlayerHealth(playerid, 100);
}
else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is a Vip Member!");
return 1;
}