how i change wrong command (unknow command)
#1

how i change wrong command (unknow command)for any thing i need
Reply
#2

and how i enable auto view mini info bar
Reply
#3

Quote:
Originally Posted by OmarHassan
how i change wrong command (unknow command)for any thing i need
Do you mean the "SERVER: UNKNOWN COMMAND" message?

Quote:
Originally Posted by OmarHassan
and how i enable auto view mini info bar
What do you mean?
Reply
#4

frist : yes
next : this not important
Reply
#5

and in car jump code if i press look behind the player jump high how i change look behind to key_jump
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_SUBMISSION))
	{
        new Float:x, Float:y, Float:z; new vehicle=GetPlayerVehicleID(playerid); //forgot somehing here Niixie :)
        if(IsPlayerInAnyVehicle(playerid))
        {
			GetVehicleVelocity(vehicle,x,y,z);
  			SetVehicleVelocity(vehicle,x,y,z+0.5);
		}
		else
		{
			GetPlayerVelocity(playerid, x, y, z);
  			SetPlayerVelocity(playerid, x, y, z +20);
        }
	}
	return 1;
}
Reply
#6

where's help
Reply
#7

Reply
#8

Dont 4x post, then you will get ban instead of help

Change this row:
pawn Код:
if (PRESSED(KEY_SUBMISSION))
To this:
pawn Код:
if (PRESSED(KEY_JUMP))
Quote:
Originally Posted by OmarHassan
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by OmarHassan
how i change wrong command (unknow command)for any thing i need
Do you mean the "SERVER: UNKNOWN COMMAND" message?
Yes
Dunno really
Reply
#9

Quote:
Originally Posted by [NWA
Hannes ]
Dont 4x post, then you will get ban instead of help

Change this row:
pawn Код:
if (PRESSED(KEY_SUBMISSION))
To this:
pawn Код:
if (PRESSED(KEY_JUMP))
Quote:
Originally Posted by OmarHassan
Quote:
Originally Posted by [NWA
Hannes ]
Quote:
Originally Posted by OmarHassan
how i change wrong command (unknow command)for any thing i need
Do you mean the "SERVER: UNKNOWN COMMAND" message?
Yes
Dunno really
ok but where i change it in admin script or gamemode
Reply
#10

For the unknown command:

Change the return 0; at OnPlayerCommandText in your gamemode to:
return SendClientMessage(playerid, 0xFFFFFFFF, "Your Message");

Cheers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)