How do i fix this command?
#2

Quote:
Originally Posted by Drift_04
ok i made a command that spawns a wall next to you, but the wall is not in front of you here is the code

code:
Код:
if (strcmp("/wall", cmdtext, true, 10) == 0)
	{
		if(GetPlayerMoney(playerid) <= 20000) return SendClientMessage(playerid,red, "You need $20,000$");
		new Float:x, Float:y, Float:z;
  	GetPlayerPos(playerid, x, y, z);
		CreateObject(974,x,y+2,z,0,0,0);
		GivePlayerMoney(playerid,-20000);
		return 1;
	}
Could someone edit it so the wall appears in front of the player please? Thankyou!


~~[Drift]~~
pawn Код:
if (strcmp("/wall", cmdtext, true, 10) == 0)
    {
        if(GetPlayerMoney(playerid) <= 20000) return SendClientMessage(playerid,red, "You need $20,000$");
        new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
        CreateObject(974,x+2,y,z,0,0,0);
        GivePlayerMoney(playerid,-20000);
        return 1;
    }
+2 y axis will make it next to you. If you do +2 x axis it will go infront of you. Correct me if I'm wrong.
Reply


Messages In This Thread
How do i fix this command? - by Drift_04 - 23.03.2009, 02:17
Re: How do i fix this command? - by [HiC]TheKiller - 23.03.2009, 05:28
Re: How do i fix this command? - by Drift_04 - 23.03.2009, 06:11
Re: How do i fix this command? - by MenaceX^ - 23.03.2009, 08:59
Re: How do i fix this command? - by Dujma - 23.03.2009, 09:01
Re: How do i fix this command? - by MenaceX^ - 23.03.2009, 09:04
Re: How do i fix this command? - by Dujma - 23.03.2009, 09:08
Re: How do i fix this command? - by Drift_04 - 23.03.2009, 14:17
Re: How do i fix this command? - by Nero_3D - 23.03.2009, 15:01
Re: How do i fix this command? - by Drift_04 - 23.03.2009, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)