06.12.2012, 16:36
(
Последний раз редактировалось Lz; 08.12.2012 в 15:54.
)
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
Also if they have say 2 wooden sticks + oil + a lighter could i do...
}
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
pawn Код:
{
if(Stick == 2) && (oil == 1) && (lighter == 1))
maketorch;
Stick--;
oil--;
lighter--;
{
else(SendClientMessage(playerid,color,"not enough resources");
}
return 1;