[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


Messages In This Thread
[HELP] Plant and Pickup - by joeri55 - 12.06.2010, 01:26
Re: [HELP] Plant and Pickup - by ViruZZzZ_ChiLLL - 12.06.2010, 01:31
Re: [HELP] Plant and Pickup - by joeri55 - 12.06.2010, 01:49

Forum Jump:


Users browsing this thread: 4 Guest(s)