SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /************************************************************************************* | |
3 | * pawn.php | |
4 | * -------- | |
5 | * Author: Rafael Keramidas ([email protected]) | |
6 | * | |
7 | * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) | |
8 | * Release Version: 1.0.8.11 | |
9 | * Date Started: 2004/07/10 | |
10 | * | |
11 | * Pawn (SA-MP) language file for GeSHi. | |
12 | * | |
13 | * CHANGES | |
14 | * ------- | |
15 | * 2012/09/12 (1.0) | |
16 | * - First Release | |
17 | * | |
18 | * | |
19 | ************************************************************************************* | |
20 | * | |
21 | * SA-MP Pawn for GeSHi by Rafael Keramidas is released under GPLv3. | |
22 | * | |
23 | ************************************************************************************/ | |
24 | ||
25 | $language_data = array ( | |
26 | 'LANG_NAME' => 'Pawn', | |
27 | 'COMMENT_SINGLE' => array(1 => '//', 2=> '#'), | |
28 | 'COMMENT_MULTI' => array('/*' => '*/'), | |
29 | 'COMMENT_REGEXP' => array(), | |
30 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |
31 | 'QUOTEMARKS' => array("'", '"'), | |
32 | 'ESCAPE_CHAR' => '\\', | |
33 | 'KEYWORDS' => array( | |
34 | 1 => array( | |
35 | 'break', 'case', 'continue', 'default', 'do', 'else', 'for', 'foreach', 'goto', 'if', | |
36 | 'return', 'switch', 'throw', 'try', 'catch', 'while', 'public', 'private', 'protected', | |
37 | 'static', 'Float', 'stock' | |
38 | ), | |
39 | 2 => array( | |
40 | 'false', 'true', 'null' | |
41 | ), | |
42 | 3 => array( | |
43 | 'AddMenuItem', | |
44 | 'AddPlayerClass', | |
45 | 'AddPlayerClassEx', | |
46 | 'AddStaticPickup', | |
47 | 'AddStaticVehicle', | |
48 | 'AddStaticVehicleEx', | |
49 | 'AddVehicleComponent', | |
50 | 'AllowAdminTeleport', | |
51 | 'AllowInteriorWeapons', | |
52 | 'AllowPlayerTeleport', | |
53 | 'ApplyAnimation', | |
54 | 'Attach3DTextLabelToPlayer', | |
55 | 'Attach3DTextLabelToVehicle', | |
56 | 'AttachCameraToObject', | |
57 | 'AttachCameraToPlayerObject', | |
58 | 'AttachObjectToObject', | |
59 | 'AttachObjectToPlayer', | |
60 | 'AttachObjectToVehicle', | |
61 | 'AttachPlayerObjectToPlayer', | |
62 | 'AttachPlayerObjectToVehicle', | |
63 | 'AttachTrailerToVehicle', | |
64 | 'Ban', | |
65 | 'BanEx', | |
66 | 'CallLocalFunction', | |
67 | 'CallRemoteFunction', | |
68 | 'CancelEdit', | |
69 | 'CancelSelectTextDraw', | |
70 | 'ChangeVehicleColor', | |
71 | 'ChangeVehiclePaintjob', | |
72 | 'clamp', | |
73 | 'ClearAnimations', | |
74 | 'ConnectNPC', | |
75 | 'Create3DTextLabel', | |
76 | 'CreateExplosion', | |
77 | 'CreateMenu', | |
78 | 'CreateObject', | |
79 | 'CreatePickup', | |
80 | 'CreatePlayer3DTextLabel', | |
81 | 'CreatePlayerObject', | |
82 | 'CreatePlayerTextDraw', | |
83 | 'CreateVehicle', | |
84 | 'db_close', | |
85 | 'db_field_name', | |
86 | 'db_free_result', | |
87 | 'db_get_field', | |
88 | 'db_get_field_assoc', | |
89 | 'db_next_row', | |
90 | 'db_num_fields', | |
91 | 'db_num_rows', | |
92 | 'db_open', | |
93 | 'db_query', | |
94 | 'Delete3DTextLabel', | |
95 | 'DeletePVar', | |
96 | 'DeletePlayer3DTextLabel', | |
97 | 'deleteproperty', | |
98 | 'DestroyMenu', | |
99 | 'DestroyObject', | |
100 | 'DestroyPickup', | |
101 | 'DestroyPlayerObject', | |
102 | 'DestroyVehicle', | |
103 | 'DetachTrailerFromVehicle', | |
104 | 'DisableInteriorEnterExits', | |
105 | 'DisableMenu', | |
106 | 'DisableMenuRow', | |
107 | 'DisableNameTagLOS', | |
108 | 'DisablePlayerCheckpoint', | |
109 | 'DisablePlayerRaceCheckpoint', | |
110 | 'EditAttachedObject', | |
111 | 'EditObject', | |
112 | 'EditPlayerObject', | |
113 | 'EnableStuntBonusForAll', | |
114 | 'EnableStuntBonusForPlayer', | |
115 | 'EnableZoneNames', | |
116 | 'existproperty', | |
117 | 'fblockread', | |
118 | 'fblockwrite', | |
119 | 'fclose', | |
120 | 'fexist', | |
121 | 'fgetchar', | |
122 | 'flength', | |
123 | 'float', | |
124 | 'floatabs', | |
125 | 'floatadd', | |
126 | 'floatattan', | |
127 | 'floatcmp', | |
128 | 'floatcos', | |
129 | 'floatdiv', | |
130 | 'floatfract', | |
131 | 'floatlog', | |
132 | 'floatmul', | |
133 | 'floatpower', | |
134 | 'floatround', | |
135 | 'floatsin', | |
136 | 'floatsqroot', | |
137 | 'floatstr', | |
138 | 'floatsub', | |
139 | 'floattan', | |
140 | 'fmatch', | |
141 | 'fopen', | |
142 | 'ForceClassSelection', | |
143 | 'format', | |
144 | 'fputchar', | |
145 | 'fread', | |
146 | 'fremove', | |
147 | 'fseek', | |
148 | 'ftemp', | |
149 | 'funcidx', | |
150 | 'fwrite', | |
151 | 'GameModeExit', | |
152 | 'GameTextForAll', | |
153 | 'GameTextForPlayer', | |
154 | 'GangZoneCreate', | |
155 | 'GangZoneDestroy', | |
156 | 'GangZoneFlashForAll', | |
157 | 'GangZoneFlashForPlayer', | |
158 | 'GangZoneHideForAll', | |
159 | 'GangZoneHideForPlayer', | |
160 | 'GangZoneShowForAll', | |
161 | 'GangZoneShowForPlayer', | |
162 | 'GangZoneStopFlashForAll', | |
163 | 'GangZoneStopFlashForPlayer', | |
164 | 'GetAnimationName', | |
165 | 'GetMaxPlayers', | |
166 | 'GetNetworkStats', | |
167 | 'GetObjectPos', | |
168 | 'GetObjectRot', | |
169 | 'GetPVarFloat', | |
170 | 'GetPVarInt', | |
171 | 'GetPVarNameAtIndex', | |
172 | 'GetPVarString', | |
173 | 'GetPVarType', | |
174 | 'GetPVarsUpperIndex', | |
175 | 'GetPlayerAmmo', | |
176 | 'GetPlayerAnimationIndex', | |
177 | 'GetPlayerArmour', | |
178 | 'GetPlayerCameraFrontVector', | |
179 | 'GetPlayerCameraMode', | |
180 | 'GetPlayerCameraPos', | |
181 | 'GetPlayerCameraUpVector', | |
182 | 'GetPlayerColor', | |
183 | 'GetPlayerDistanceFromPoint', | |
184 | 'GetPlayerDrunkLevel', | |
185 | 'GetPlayerFacingAngle', | |
186 | 'GetPlayerFightingStyle', | |
187 | 'GetPlayerHealth', | |
188 | 'GetPlayerInterior', | |
189 | 'GetPlayerIp', | |
190 | 'GetPlayerKeys', | |
191 | 'GetPlayerMenu', | |
192 | 'GetPlayerMoney', | |
193 | 'GetPlayerName', | |
194 | 'GetPlayerNetworkStats', | |
195 | 'GetPlayerObjectPos', | |
196 | 'GetPlayerObjectRot', | |
197 | 'GetPlayerPing', | |
198 | 'GetPlayerPos', | |
199 | 'GetPlayerScore', | |
200 | 'GetPlayerSkin', | |
201 | 'GetPlayerSpecialAction', | |
202 | 'GetPlayerState', | |
203 | 'GetPlayerSurfingObjectID', | |
204 | 'GetPlayerSurfingVehicleID', | |
205 | 'GetPlayerTargetPlayer', | |
206 | 'GetPlayerTeam', | |
207 | 'GetPlayerTime', | |
208 | 'GetPlayerVehicleID', | |
209 | 'GetPlayerVehicleSeat', | |
210 | 'GetPlayerVelocity', | |
211 | 'GetPlayerVersion', | |
212 | 'GetPlayerVirtualWorld', | |
213 | 'GetPlayerWantedLevel', | |
214 | 'GetPlayerWeapon', | |
215 | 'GetPlayerWeaponData', | |
216 | 'GetPlayerWeaponState', | |
217 | 'GetServerVarAsBool', | |
218 | 'GetServerVarAsInt', | |
219 | 'GetServerVarAsString', | |
220 | 'GetTickCount', | |
221 | 'GetVehicleComponentInSlot', | |
222 | 'GetVehicleComponentType', | |
223 | 'GetVehicleDamageStatus', | |
224 | 'GetVehicleDistanceFromPoint', | |
225 | 'GetVehicleHealth', | |
226 | 'GetVehicleModel', | |
227 | 'GetVehicleModelInfo', | |
228 | 'GetVehiclePos', | |
229 | 'GetVehicleRotationQuat', | |
230 | 'GetVehicleTrailer', | |
231 | 'GetVehicleVelocity', | |
232 | 'GetVehicleVirtualWorld', | |
233 | 'GetVehicleZAngle', | |
234 | 'GetWeaponName', | |
235 | 'getarg', | |
236 | 'getdate', | |
237 | 'getproperty', | |
238 | 'gettime', | |
239 | 'GivePlayerMoney', | |
240 | 'GivePlayerWeapon', | |
241 | 'HTTP', | |
242 | 'heapspace', | |
243 | 'HideMenuForPlayer', | |
244 | 'InterpolateCameraLookAt', | |
245 | 'InterpolateCameraPos', | |
246 | 'IsObjectMoving', | |
247 | 'IsPlayerAdmin', | |
248 | 'IsPlayerAttachedObjectSlotUsed', | |
249 | 'IsPlayerConnected', | |
250 | 'IsPlayerHoldingObject', | |
251 | 'IsPlayerInAnyVehicle', | |
252 | 'IsPlayerInCheckpoint', | |
253 | 'IsPlayerInRaceCheckpoint', | |
254 | 'IsPlayerInRangeOfPoint', | |
255 | 'IsPlayerInVehicle', | |
256 | 'IsPlayerNPC', | |
257 | 'IsPlayerObjectMoving', | |
258 | 'IsPlayerStreamedIn', | |
259 | 'IsTrailerAttachedToVehicle', | |
260 | 'IsValidObject', | |
261 | 'IsValidPlayerObject', | |
262 | 'IsValidVehicle', | |
263 | 'IsVehicleStreamedIn', | |
264 | 'ispacked', | |
265 | 'Kick', | |
266 | 'KillTimer', | |
267 | 'LimitGlobalChatRadius', | |
268 | 'LimitPlayerMarkerRadius', | |
269 | 'LinkVehicleToInterior', | |
270 | 'ManualVehicleEngineAndLights', | |
271 | 'memcpy', | |
272 | 'MoveObject', | |
273 | 'MovePlayerObject', | |
274 | 'PlayAudioStreamForPlayer', | |
275 | 'PlayCrimeReportForPlayer', | |
276 | 'PlayerPlaySound', | |
277 | 'PlayerSpectatePlayer', | |
278 | 'PlayerSpectateVehicle', | |
279 | 'PlayerTextDrawAlignment', | |
280 | 'PlayerTextDrawBackgroundColor', | |
281 | 'PlayerTextDrawBoxColor', | |
282 | 'PlayerTextDrawColor', | |
283 | 'PlayerTextDrawDestroy', | |
284 | 'PlayerTextDrawFont', | |
285 | 'PlayerTextDrawHide', | |
286 | 'PlayerTextDrawLetterSize', | |
287 | 'PlayerTextDrawSetOutline', | |
288 | 'PlayerTextDrawSetProportional', | |
289 | 'PlayerTextDrawSetSelectable', | |
290 | 'PlayerTextDrawSetShadow', | |
291 | 'PlayerTextDrawSetString', | |
292 | 'PlayerTextDrawShow', | |
293 | 'PlayerTextDrawTextSize', | |
294 | 'PlayerTextDrawUseBox', | |
295 | 'print', | |
296 | 'printf', | |
297 | 'PutPlayerInVehicle', | |
298 | 'random', | |
299 | 'RemoveBuildingForPlayer', | |
300 | 'RemovePlayerAttachedObject', | |
301 | 'RemovePlayerFromVehicle', | |
302 | 'RemovePlayerMapIcon', | |
303 | 'RemoveVehicleComponent', | |
304 | 'RepairVehicle', | |
305 | 'ResetPlayerMoney', | |
306 | 'ResetPlayerWeapons', | |
307 | 'SelectObject', | |
308 | 'SelectTextDraw', | |
309 | 'SendClientMessage', | |
310 | 'SendClientMessageToAll', | |
311 | 'SendDeathMessage', | |
312 | 'SendPlayerMessageToAll', | |
313 | 'SendPlayerMessageToPlayer', | |
314 | 'SendRconCommand', | |
315 | 'SetCameraBehindPlayer', | |
316 | 'SetDeathDropAmount', | |
317 | 'SetDisabledWeapons', | |
318 | 'SetGameModeText', | |
319 | 'SetGravity', | |
320 | 'SetMenuColumnHeader', | |
321 | 'SetNameTagDrawDistance', | |
322 | 'SetObjectMaterial', | |
323 | 'SetObjectMaterialText', | |
324 | 'SetObjectPos', | |
325 | 'SetObjectRot', | |
326 | 'SetPVarFloat', | |
327 | 'SetPVarInt', | |
328 | 'SetPVarString', | |
329 | 'SetPlayerAmmo', | |
330 | 'SetPlayerArmedWeapon', | |
331 | 'SetPlayerArmour', | |
332 | 'SetPlayerAttachedObject', | |
333 | 'SetPlayerCameraLookAt', | |
334 | 'SetPlayerCameraPos', | |
335 | 'SetPlayerChatBubble', | |
336 | 'SetPlayerCheckpoint', | |
337 | 'SetPlayerColor', | |
338 | 'SetPlayerDrunkLevel', | |
339 | 'SetPlayerFacingAngle', | |
340 | 'SetPlayerFightingStyle', | |
341 | 'SetPlayerHealth', | |
342 | 'SetPlayerHoldingObject', | |
343 | 'SetPlayerInterior', | |
344 | 'SetPlayerMapIcon', | |
345 | 'SetPlayerMarkerForPlayer', | |
346 | 'SetPlayerName', | |
347 | 'SetPlayerObjectMaterial', | |
348 | 'SetPlayerObjectMaterialText', | |
349 | 'SetPlayerObjectPos', | |
350 | 'SetPlayerObjectRot', | |
351 | 'SetPlayerPos', | |
352 | 'SetPlayerPosFindZ', | |
353 | 'SetPlayerRaceCheckpoint', | |
354 | 'SetPlayerScore', | |
355 | 'SetPlayerShopName', | |
356 | 'SetPlayerSkillLevel', | |
357 | 'SetPlayerSkin', | |
358 | 'SetPlayerSpecialAction', | |
359 | 'SetPlayerTeam', | |
360 | 'SetPlayerTime', | |
361 | 'SetPlayerVelocity', | |
362 | 'SetPlayerVirtualWorld', | |
363 | 'SetPlayerWantedLevel', | |
364 | 'SetPlayerWeather', | |
365 | 'SetPlayerWorldBounds', | |
366 | 'SetSpawnInfo', | |
367 | 'SetTeamCount', | |
368 | 'SetTimer', | |
369 | 'SetTimerEx', | |
370 | 'SetVehicleAngularVelocity', | |
371 | 'SetVehicleHealth', | |
372 | 'SetVehicleNumberPlate', | |
373 | 'SetVehicleParamsEx', | |
374 | 'SetVehicleParamsForPlayer', | |
375 | 'SetVehiclePos', | |
376 | 'SetVehicleToRespawn', | |
377 | 'SetVehicleVelocity', | |
378 | 'SetVehicleVirtualWorld', | |
379 | 'SetVehicleZAngle', | |
380 | 'SetWeather', | |
381 | 'SetWorldTime', | |
382 | 'setproperty', | |
383 | 'ShowMenuForPlayer', | |
384 | 'ShowNameTags', | |
385 | 'ShowPlayerDialog', | |
386 | 'ShowPlayerMarkers', | |
387 | 'ShowPlayerNameTagForPlayer', | |
388 | 'SpawnPlayer', | |
389 | 'StartRecordingPlayerData', | |
390 | 'StopAudioStreamForPlayer', | |
391 | 'StopObject', | |
392 | 'StopPlayerHoldingObject', | |
393 | 'StopPlayerObject', | |
394 | 'StopRecordingPlayerData', | |
395 | 'strcat', | |
396 | 'strcmp', | |
397 | 'strdel', | |
398 | 'strfind', | |
399 | 'strins', | |
400 | 'strlen', | |
401 | 'strmid', | |
402 | 'strpack', | |
403 | 'strunpack', | |
404 | 'strval', | |
405 | 'TextDrawAlignment', | |
406 | 'TextDrawBackgroundColor', | |
407 | 'TextDrawBoxColor', | |
408 | 'TextDrawColor', | |
409 | 'TextDrawCreate', | |
410 | 'TextDrawDestroy', | |
411 | 'TextDrawFont', | |
412 | 'TextDrawHideForAll', | |
413 | 'TextDrawHideForPlayer', | |
414 | 'TextDrawLetterSize', | |
415 | 'TextDrawSetOutline', | |
416 | 'TextDrawSetProportional', | |
417 | 'TextDrawSetSelectable', | |
418 | 'TextDrawSetShadow', | |
419 | 'TextDrawSetString', | |
420 | 'TextDrawShowForAll', | |
421 | 'TextDrawShowForPlayer', | |
422 | 'TextDrawTextSize', | |
423 | 'TextDrawUseBox' | |
424 | ), | |
425 | 4 => array( | |
426 | 'enum', 'new', 'const' | |
427 | ), | |
428 | 5 => array( | |
429 | 'OnDialogResponse', | |
430 | 'OnEnterExitModShop', | |
431 | 'OnFilterScriptExit', | |
432 | 'OnFilterScriptInit', | |
433 | 'OnGameModeExit', | |
434 | 'OnGameModeInit', | |
435 | 'OnObjectMoved', | |
436 | 'OnPlayerClickMap', | |
437 | 'OnPlayerClickPlayer', | |
438 | 'OnPlayerClickPlayerTextDraw', | |
439 | 'OnPlayerClickTextDraw', | |
440 | 'OnPlayerCommandText', | |
441 | 'OnPlayerConnect', | |
442 | 'OnPlayerDeath', | |
443 | 'OnPlayerDisconnect', | |
444 | 'OnPlayerEditAttachedObject', | |
445 | 'OnPlayerEditObject', | |
446 | 'OnPlayerEnterCheckpoint', | |
447 | 'OnPlayerEnterRaceCheckpoint', | |
448 | 'OnPlayerEnterVehicle', | |
449 | 'OnPlayerExitVehicle', | |
450 | 'OnPlayerExitedMenu', | |
451 | 'OnPlayerGiveDamage', | |
452 | 'OnPlayerInteriorChange', | |
453 | 'OnPlayerKeyStateChange', | |
454 | 'OnPlayerLeaveCheckpoint', | |
455 | 'OnPlayerLeaveRaceCheckpoint', | |
456 | 'OnPlayerObjectMoved', | |
457 | 'OnPlayerPickUpPickup', | |
458 | 'OnPlayerPrivmsg', | |
459 | 'OnPlayerRequestClass', | |
460 | 'OnPlayerRequestSpawn', | |
461 | 'OnPlayerSelectObject', | |
462 | 'OnPlayerSelectedMenuRow', | |
463 | 'OnPlayerSpawn', | |
464 | 'OnPlayerStateChange', | |
465 | 'OnPlayerStreamIn', | |
466 | 'OnPlayerStreamOut', | |
467 | 'OnPlayerTakeDamage', | |
468 | 'OnPlayerTeamPrivmsg', | |
469 | 'OnPlayerText', | |
470 | 'OnPlayerUpdate', | |
471 | 'OnRconCommand', | |
472 | 'OnRconLoginAttempt', | |
473 | 'OnUnoccupiedVehicleUpdate', | |
474 | 'OnVehicleDamageStatusUpdate', | |
475 | 'OnVehicleDeath', | |
476 | 'OnVehicleMod', | |
477 | 'OnVehiclePaintjob', | |
478 | 'OnVehicleRespray', | |
479 | 'OnVehicleSpawn', | |
480 | 'OnVehicleStreamIn', | |
481 | 'OnVehicleStreamOut' | |
482 | ) | |
483 | ), | |
484 | 'SYMBOLS' => array( | |
485 | '(', ')', '[', ']', '{', '}', | |
486 | '+', '-', '*', '/', '%', | |
487 | '!', '&', '|', '^', | |
488 | '<', '>', '=', | |
489 | '?', ':', ';', | |
490 | ), | |
491 | 'CASE_SENSITIVE' => array( | |
492 | GESHI_COMMENTS => false, | |
493 | 1 => false, | |
494 | 2 => false, | |
495 | 3 => false, | |
496 | 4 => false, | |
497 | 5 => false, | |
498 | ), | |
499 | 'STYLES' => array( | |
500 | 'KEYWORDS' => array( | |
501 | 1 => 'color: #b1b100;', | |
502 | 2 => 'color: #000000; font-weight: bold;', | |
503 | 3 => 'color: #000066;', | |
504 | 4 => 'color: #993333;', | |
505 | 5 => 'color: #63648C;' | |
506 | ), | |
507 | 'COMMENTS' => array( | |
508 | 1 => 'color: #808080; font-style: italic;', | |
509 | 2 => 'color: #339933;', | |
510 | 'MULTI' => 'color: #808080; font-style: italic;' | |
511 | ), | |
512 | 'ESCAPE_CHAR' => array( | |
513 | 0 => 'color: #000099; font-weight: bold;' | |
514 | ), | |
515 | 'BRACKETS' => array( | |
516 | 0 => 'color: #66cc66;' | |
517 | ), | |
518 | 'STRINGS' => array( | |
519 | 0 => 'color: #ff0000;' | |
520 | ), | |
521 | 'NUMBERS' => array( | |
522 | 0 => 'color: #cc66cc;' | |
523 | ), | |
524 | 'METHODS' => array( | |
525 | 1 => 'color: #202020;', | |
526 | 2 => 'color: #202020;' | |
527 | ), | |
528 | 'SYMBOLS' => array( | |
529 | 0 => 'color: #66cc66;' | |
530 | ), | |
531 | 'REGEXPS' => array( | |
532 | ), | |
533 | 'SCRIPT' => array( | |
534 | ) | |
535 | ), | |
536 | 'URLS' => array( | |
537 | 1 => '', | |
538 | 2 => '', | |
539 | - | 3 => 'http://wiki.sa-mp.com/wiki/{FNAMEL}', |
539 | + | 3 => 'http://wiki.sa-mp.com/wiki/{FNAME}', |
540 | 4 => '', | |
541 | - | 5 => 'http://wiki.sa-mp.com/wiki/{FNAMEL}' |
541 | + | 5 => 'http://wiki.sa-mp.com/wiki/{FNAME}' |
542 | ), | |
543 | 'OOLANG' => false, | |
544 | 'OBJECT_SPLITTERS' => array( | |
545 | ), | |
546 | 'REGEXPS' => array( | |
547 | ), | |
548 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, | |
549 | 'SCRIPT_DELIMITERS' => array( | |
550 | ), | |
551 | 'HIGHLIGHT_STRICT_BLOCK' => array( | |
552 | ) | |
553 | ); |