23.03.2009, 02:17
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:
Could someone edit it so the wall appears in front of the player please? Thankyou!
~~[Drift]~~
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;
}
~~[Drift]~~

