[HELP] Plant and Pickup
#1

Alright, I'm a noob and I don't have a fucking clue how to make something like a /pickup and /plant weed cmd.

I've tried something but it's so HARD.

This is what I got.

Код:
	if(strcmp(cmd, "/plant weed", true) == 0 || strcmp(cmd, "/plw", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(PlayerInfo[playerid][pSeed] < 0 )
			{
			  SendClientMessage(playerid, COLOR_GRAD1, "  You don't have a seed!");
			  return 1;
			}
			if(PlayerInfo[playerid][pSeed] > 1 )
			{
				GetPlayerPos(playerid)
				CreateObject(playerid,x,y,z)
  			}
		}
		return 1;
	}


	if(strcmp(cmd, "/pickitem", true) == 0 || strcmp(cmd, "/pi", true) == 0)	{
	  if(IsPlayerConnected(playerid))
	  {
			}

  			}
		}
		return 1;
	}
Reply
#2

here :
pawn Код:
new Float:x, Float:y, Float:z;
if(PlayerInfo[playerid][pSeed] > 1 )
{
GetPlayerPos(playerid, x, y, z);
CreateObject(modelid, x, y, z, 0, 0, 0);
 }
Reply
#3

Quote:
Originally Posted by ViruZZzZ_ChiLLL
here :
pawn Код:
new Float:x, Float:y, Float:z;
if(PlayerInfo[playerid][pSeed] > 1 )
{
GetPlayerPos(playerid, x, y, z);
CreateObject(modelid, x, y, z, 0, 0, 0);
 }
Thanks for that, now I need to make something that the weed object pops out of the ground when you /plant weed.

And does anyone know how the script /pickitem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)