Poison Vial
#1

Im wanting to make a command '/Posion PLAYERID'
It can only be used by faction members, And every minute it will decrease their HP by 20, Is there anything like this?
And how would i add a posion pickup so to say like /pickup poison ?

Im a pretty new scripter, But i was thinking should i take a hunger script and then try get some help to edit that?

Thanks
Reply
#2

Код:
CMD:pickupvial(playerid, params[])
{
	new string[128];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!IsAHitman(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an hitman.");
	if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't use this command while being in a vehicle.");
	if(!IsPlayerInRangeOfPoint(playerid, 2, 545.6661,-1292.2437,17.2422)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the posion storage unit.");
	format(string, sizeof(string), "* %s Picks up a vial of posion", RPN(playerid));
	return 1;
}
So far all i can do on my own is this, I got no idea how i would make it so i actually have 1 vial of poison?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)