Useable items
#1

To make useable items.. E.g a phone.. It doesn't neccesarly need to be seen on the player, it could be in their backpack.

Would i use a variable?

example script
pawn Код:
new Phone=0; // No phone


Phone++; // When player buys a phone

//

if(Phone == 1)) // They do have phone
Also if they have say 2 wooden sticks + oil + a lighter could i do...
pawn Код:
{
if(Stick == 2) && (oil == 1) && (lighter == 1))
maketorch;
Stick--;
oil--;
lighter--;
{
else(SendClientMessage(playerid,color,"not enough resources");
}
return 1;
}
Reply


Messages In This Thread
Useable items - by Lz - 06.12.2012, 16:36
Re: Useable items - by Lz - 08.12.2012, 15:54
Re: Useable items - by Threshold - 08.12.2012, 16:21
Re: Useable items - by Lz - 08.12.2012, 16:41
Re: Useable items - by SKAzini - 08.12.2012, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)