-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing 1.9 -Object notes (can be seen with /note command and on text3d, also is exported on maps on a comment on the end of the objects' lines) -Per-object/group draw distance -More advanced databases with much more information stored (saves map creator name, last edit time, spawn position for /gotomap, and interior/vw) -Repeat last command with WALK + CROUCH (more buffered commands stuff coming) -More advanced text3d options for notes and object model info (see /edittext3d) -/mprop for map properties (currently only vw and interior) -/gotomap and /setspawn for saved maps (/gotomap sends the player to the /setspawn location) -Vehicle siren support
- Loading branch information
Showing
16 changed files
with
1,003 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,5 @@ Icon | |
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
*.session | ||
pawno/pawnc.bat |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#define MAX_COMMAND_BUFFER (20) | ||
|
||
new CommandBuffer[MAX_PLAYERS][MAX_COMMAND_BUFFER][128], | ||
bool:CommandBuffed[MAX_PLAYERS][MAX_COMMAND_BUFFER]; | ||
|
||
#define PRESSED(%0) \ | ||
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) | ||
#define RELEASED(%0) \ | ||
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0))) | ||
|
||
new bool:HoldKeyPressed; | ||
OnPlayerKeyStateChangeCMD(playerid,newkeys,oldkeys) | ||
{ | ||
if(HoldKeyPressed && PRESSED(KEY_CROUCH) && !isnull(CommandBuffer[playerid][0])) | ||
Command_ReProcess(playerid, CommandBuffer[playerid][0], 0); //BroadcastCommand(playerid, CommandBuffer[playerid][0]); | ||
|
||
if(PRESSED(KEY_WALK)) | ||
HoldKeyPressed = true; | ||
else if(RELEASED(KEY_WALK)) | ||
HoldKeyPressed = false; | ||
|
||
return 0; | ||
} | ||
|
||
public OnPlayerCommandPerformed(playerid, cmdtext[], success) | ||
{ | ||
if(success) | ||
{ | ||
// If we need to shift the buffer | ||
if(CommandBuffed[playerid][MAX_COMMAND_BUFFER - 1]) | ||
{ | ||
// Make every slot, start from slot 2, take the data from the slot before | ||
for(new i = 1; i < MAX_COMMAND_BUFFER; i++) | ||
CommandBuffer[playerid][i] = CommandBuffer[playerid][i - 1]; | ||
} | ||
|
||
// Insert the command and it's parameters into the buffer | ||
CommandBuffer[playerid][0][0] = EOS; | ||
strcat(CommandBuffer[playerid][0], cmdtext); | ||
|
||
return 1; | ||
} | ||
return 0; | ||
} | ||
|
||
public OnPlayerConnect(playerid) | ||
{ | ||
// Reset the player's buffer | ||
new tmpCommandBuffer[MAX_COMMAND_BUFFER][128]; | ||
CommandBuffer[playerid] = tmpCommandBuffer; | ||
|
||
#if defined CB_OnPlayerConnect | ||
CB_OnPlayerConnect(playerid); | ||
#endif | ||
return 1; | ||
} | ||
#if defined _ALS_OnPlayerConnect | ||
#undef OnPlayerConnect | ||
#else | ||
#define _ALS_OnPlayerConnect | ||
#endif | ||
#define OnPlayerConnect CB_OnPlayerConnect | ||
#if defined CB_OnPlayerConnect | ||
forward CB_OnPlayerConnect(playerid); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.