Updated translations, converted the menu to use keyword defines instead of hardcoded names.
This commit is contained in:
@ -35,12 +35,12 @@ MenuMain(client)
|
||||
decl String:zmarket[64];
|
||||
|
||||
// Translate each line into client's language.
|
||||
Format(zadmin, sizeof(zadmin), "%t", "Menu main zadmin");
|
||||
Format(zclass, sizeof(zclass), "%t", "Menu main zclass");
|
||||
Format(zspawn, sizeof(zspawn), "%t", "Menu main zspawn");
|
||||
Format(ztele, sizeof(ztele), "%t", "Menu main ztele");
|
||||
Format(zhp, sizeof(zhp), "%t", "Menu main zhp");
|
||||
Format(zmarket, sizeof(zmarket), "%t", "Menu main zmarket");
|
||||
Format(zadmin, sizeof(zadmin), "%t", "Menu main zadmin", SAYHOOKS_KEYWORD_ZMENU);
|
||||
Format(zclass, sizeof(zclass), "%t", "Menu main zclass", SAYHOOKS_KEYWORD_ZADMIN);
|
||||
Format(zspawn, sizeof(zspawn), "%t", "Menu main zspawn", SAYHOOKS_KEYWORD_ZCLASS);
|
||||
Format(ztele, sizeof(ztele), "%t", "Menu main ztele", SAYHOOKS_KEYWORD_ZTELE);
|
||||
Format(zhp, sizeof(zhp), "%t", "Menu main zhp", SAYHOOKS_KEYWORD_ZHP);
|
||||
Format(zmarket, sizeof(zmarket), "%t", "Menu main zmarket", SAYHOOKS_KEYWORD_ZMARKET);
|
||||
|
||||
// Add items to menu.
|
||||
|
||||
|
@ -67,8 +67,9 @@ public Action:SayHooksCmdSay(client, argc)
|
||||
// Get client's command string (typically 'say "text"')
|
||||
GetCmdArgString(args, sizeof(args));
|
||||
|
||||
// Strip away the quotes.
|
||||
ReplaceString(args, sizeof(args), "\"", "");
|
||||
// Strip away certain characters.
|
||||
ReplaceString(args, sizeof(args), "\"", ""); // Strip quotes
|
||||
ReplaceString(args, sizeof(args), " ", ""); // Strip all whitespace.
|
||||
|
||||
new chatflag = SayHooksChatToFlag(args);
|
||||
|
||||
@ -152,8 +153,8 @@ public Action:SayHooksCmdSay(client, argc)
|
||||
/**
|
||||
* Convert chat text into a defined flag.
|
||||
*
|
||||
* @param chat The chat text to convert.
|
||||
* @return Returns flag for word given, returns 0 if matches none.
|
||||
* @param chat The chat text to convert.
|
||||
* @return Returns flag for word given, returns 0 if matches none.
|
||||
*/
|
||||
SayHooksChatToFlag(const String:chat[])
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ enum WpnRestrictQuery
|
||||
RestrictInit()
|
||||
{
|
||||
// Initialize weapon restrict array.
|
||||
gRestrictedWeapons = CreateArray(32, 0);
|
||||
gRestrictedWeapons = CreateArray(WEAPONS_MAX_LENGTH, 0);
|
||||
|
||||
// Hook buy command.
|
||||
RegConsoleCmd("buy", RestrictBuyCommand);
|
||||
|
Reference in New Issue
Block a user