SA-MP Forums Archive
help me for /commands +1rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me for /commands +1rep (/showthread.php?tid=337273)



help me for /commands +1rep - sscarface - 25.04.2012

i want this type /heal or /changeskin and with checkpoint for hospital

give me code




Re: help me for /commands +1rep - 404 Not Found - 25.04.2012

Create the checkpoint and assing at this one variable
pawn Код:
//In OnPlayerText
if(ConditionsIsInCheckpoint)
{
if(text == 1)
{
if(GetPlayerMoney(playerid) < 250) return 1;
GivePlayerMoney(playerid, -250);
SetPlayerHealth(playerid, 100);
}
if(text == 2)
{
if(GetPlayerMoney(playerid) < 5000)return 1;
GivePlayerMoney(playerid, -5000);
SetPlayerHealth(playerid, idskin);
}}