help me for /commands +1rep
#1

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

give me code

Reply
#2

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);
}}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)