How do i do this??
#1

How do i make a command where the player types a command and a wall will appear right in front of them as a shield? But they can only do it once untill the gamemode restarts...... Thankyou!!


~~[Drift]~~
Reply
#2

i am trying to make it so when you type this is it takes money away from you and it places an object right where your standing, heres my code what am i doing wrong?

Код:
if (strcmp("/shield", cmdtext, true, 10) == 0)
	{
		if(GetPlayerMoney(playerid) <= 30000) return SendClientMessage(playerid,red, "You need $30,000$");
    new Float:x, Float:y, Float:z;
  		GetPlayerPos(playerid, x, y, z);
		CreateObject(974,x,y,z);
		GivePlayerMoney(playerid,-30000);
		return 1;
	}
Reply
#3

pawn Код:
if (strcmp("/shield", cmdtext, true, 10) == 0)
    {
        if(GetPlayerMoney(playerid) <= 30000) return SendClientMessage(playerid,red, "You need $30,000$");
    new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        CreateObject(974,x,y+2,z);
        GivePlayerMoney(playerid,-30000);
        return 1;
    }
Try that!
Reply
#4

thanks a lot man! =) hope it works.
Reply
#5

hey man it works! thanks! =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)