Created
June 24, 2015 12:37
-
-
Save m0k1/47987981ea490972f5ae to your computer and use it in GitHub Desktop.
TestFunctions FilterScript
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
#include <a_samp> | |
#define SendFormatMsg(%0,%1) new strformatmsg[512]; format(strformatmsg, 512, %0, %1); SendText(playerid,strformatmsg) | |
#define SendFormatMsgToAll(%0,%1) new strformatmsg[512]; format(strformatmsg, 512, %0, %1); SendClientMessageToAll(-1,strformatmsg) | |
#define SendFormatMsgForPlayer(%0,%1,%2) new strformatmsg[512]; format(strformatmsg, 512, %1, %2); SendText(%0,strformatmsg) | |
#define ifCMD(%0) if(!strcmp(cmd, %0, true)) | |
#define RetMsg(%0) new RetStrMsg[512] = %0 | |
#define GetInt(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new %0 = strval(cmd) | |
#define GetFloat(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new Float:%0 = floatstr(cmd) | |
#define GetText(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new Text:%0 = Text:strval(cmd) | |
#define GetPlayerText(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new PlayerText:%0 = PlayerText:strval(cmd) | |
#define GetMenu(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new Menu:%0 = Menu:strval(cmd) | |
#define GetText3D(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new Text3D:%0 = Text3D:strval(cmd) | |
#define GetPlayerText3D(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new PlayerText3D:%0 = PlayerText3D:strval(cmd) | |
#define GetString(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new %0[128]=""; strcat(%0,cmd) | |
#define Getfloatround_method(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new floatround_method:%0 = floatround_method:strval(cmd) | |
#define Getanglemode(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new anglemode:%0 = anglemode:strval(cmd) | |
#define Getbool(%0) cmd = GetParameter(cmdtext, idx); if(!strlen(cmd)) return SendText(playerid, RetStrMsg); new bool:%0 = bool:strval(cmd) | |
#define SetInt(%0) new %0 | |
#define SetFloat(%0) new Float:%0 | |
#define SetText(%0) new Text:%0 | |
#define SetPlayerText(%0) new PlayerText:%0 | |
#define SetMenu(%0) new Menu:%0 | |
#define SetText3D(%0) new Text3D:%0 | |
#define SetPlayerText3D(%0) new PlayerText3D:%0 | |
#define SetString(%0) new %0[512] | |
#define ShowDialogFS(%0) SetPVarInt(playerid,"dialogFsFlag",1); ShowPlayerDialog(%0) | |
public OnFilterScriptInit() | |
{ | |
print("******************************************\n"); | |
print("*************(Miguel Leopold)*************\n"); | |
print("****************[Commands]****************\n"); | |
print("******************************************\n"); | |
print("FilterScript Loading...\n"); | |
return 1; | |
} | |
public OnFilterScriptExit() | |
{ | |
print("******************************************\n"); | |
print("*************(Miguel Leopold)*************\n"); | |
print("****************[Commands]****************\n"); | |
print("******************************************\n"); | |
print("FilterScript Unloading...\n"); | |
return 1; | |
} | |
new Float:letterSizes[127] = {0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000, | |
0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.500000,1.750000,1.750000, | |
0.000000,2.250000,0.752000,1.000000,1.000000,1.250000,2.000000,1.000000,1.000000,1.000000,1.000000,1.750000,1.500000,1.750000,1.750000,1.750000,1.750000,1.750000,1.750000,1.750000, | |
1.750000,1.000000,1.000000,2.000000,2.000000,2.000000,2.000000,3.256410,2.250000,2.250000,2.250000,2.250000,2.000000,2.000000,2.500000,2.250000,1.000000,1.750000,2.250000,2.000000, | |
2.750000,2.250000,2.520000,2.250000,2.500000,2.250000,2.250000,2.000000,2.250000,2.250000,3.256410,2.250000,2.000000,1.750000,1.000000,1.000000,1.000000,2.000000,1.750000,0.000000, | |
2.000000,2.000000,1.750000,2.000000,2.000000,1.000000,2.000000,2.000000,1.000000,1.000000,1.750000,1.000000,3.000000,2.000000,2.000000,2.000000,2.000000,1.247525,1.500000,1.000000, | |
2.000000,1.750000,2.739130,2.000000,1.750000,1.750000,1.247525,0.752000,1.247525,2.000000}; | |
SendText(playerid,text[]) | |
{ | |
new message[256]; | |
new idx; | |
new msglen=0; | |
new len = strlen(text); | |
new Float:sum; | |
while(len < 512) | |
{ | |
sum = 0.0; | |
idx = 0; | |
while(sum<156.0) | |
{ | |
if(msglen >= len) | |
{ | |
message[idx] = 0; | |
SendClientMessage(playerid,-1,message); | |
return 1; | |
} | |
message[idx] = text[msglen]; | |
sum+=letterSizes[text[msglen]]; | |
idx++; | |
msglen++; | |
} | |
message[idx] = 0; | |
SendClientMessage(playerid,-1,message); | |
} | |
return 1; | |
} | |
sHexTOsInt(string[]) | |
{ | |
new lenght = strlen(string); | |
new result = 0; | |
new idx = 0; | |
while(!(string[idx-1]=='0' && string[idx]=='x')) if((idx++)>lenght) return 0; | |
lenght = idx++; | |
new startToDel = idx-2; | |
while((string[idx]>='A'&&string[idx]<='F')||(string[idx]>='a'&&string[idx]<='f')||(string[idx]>='0'&&string[idx]<='9')) idx++; | |
while((++lenght)<idx) | |
{ | |
switch(string[lenght]) | |
{ | |
case 'A' .. 'F': result+=(string[lenght]-55)<<((idx-1-lenght)*4); | |
case 'a' .. 'f': result+=(string[lenght]-87)<<((idx-1-lenght)*4); | |
case '0' .. '9': result+=(string[lenght]-48)<<((idx-1-lenght)*4); | |
default: return 0; | |
} | |
} | |
strdel(string,startToDel,lenght); | |
new sTemp[64]; | |
valstr(sTemp,result); | |
strins(string,sTemp,startToDel,128); | |
sHexTOsInt(string); | |
return result; | |
} | |
public OnPlayerCommandText(playerid, cmdtext[]) | |
{ | |
sHexTOsInt(cmdtext); | |
for(new i = 0; i < strlen(cmdtext); i++) if(cmdtext[i] == ')') cmdtext[i] = '\0'; | |
new cmd[128], params[128], idx; | |
cmd = GetParameter(cmdtext, idx); | |
strmid(params,cmdtext,idx,strlen(cmdtext)); | |
ifCMD("/includes") | |
{ | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"Includes","/a_players.inc\n/a_objects.inc\n/a_samp.inc\n/a_vehicles.inc\n/float.inc\n/string.inc\n/time.inc\n/[include].def //show #defines","Select","Close"); | |
return 1; | |
} | |
ifCMD("/[include].def") | |
{ | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"Includes Defines","/a_players.def\n/a_objects.def\n/a_samp.def\n/a_vehicles.def\n/float.def\n/string.def\n/time.def","Select","Close"); | |
return 1; | |
} | |
ifCMD("/SetSpawnInfo") | |
{ | |
RetMsg("SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)"); | |
GetInt(p1ayerid); | |
GetInt(team); | |
GetInt(skin); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetFloat(rotation); | |
GetInt(weapon1); | |
GetInt(weapon1_ammo); | |
GetInt(weapon2); | |
GetInt(weapon2_ammo); | |
GetInt(weapon3); | |
GetInt(weapon3_ammo); | |
SendFormatMsg("SetSpawnInfo(%s); Return %i",params,SetSpawnInfo(p1ayerid,team,skin,x,y,z,rotation,weapon1,weapon1_ammo,weapon2,weapon2_ammo,weapon3,weapon3_ammo)); | |
return 1; | |
} | |
ifCMD("/SpawnPlayer") | |
{ | |
RetMsg("SpawnPlayer(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("SpawnPlayer(%s); Return %i",params,SpawnPlayer(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerPos") | |
{ | |
RetMsg("SetPlayerPos(playerid, Float:x, Float:y, Float:z)"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("SetPlayerPos(%s); Return %i",params,SetPlayerPos(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/SetPlayerPosFindZ") | |
{ | |
RetMsg("SetPlayerPosFindZ(playerid, Float:x, Float:y, Float:z)"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("SetPlayerPosFindZ(%s); Return %i",params,SetPlayerPosFindZ(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerPos") | |
{ | |
RetMsg("GetPlayerPos(playerid, &Float:x, &Float:y, &Float:z)"); | |
GetInt(p1ayerid); | |
SetFloat(x); | |
SetFloat(y); | |
SetFloat(z); | |
SendFormatMsg("GetPlayerPos(%s), x(%f), y(%f), z(%f); Return %i",params,x,y,z,GetPlayerPos(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/SetPlayerFacingAngle") | |
{ | |
RetMsg("SetPlayerFacingAngle(playerid,Float:ang)"); | |
GetInt(p1ayerid); | |
GetFloat(ang); | |
SendFormatMsg("SetPlayerFacingAngle(%s); Return %i",params,SetPlayerFacingAngle(p1ayerid,ang)); | |
return 1; | |
} | |
ifCMD("/GetPlayerFacingAngle") | |
{ | |
RetMsg("GetPlayerFacingAngle(playerid,&Float:ang)"); | |
GetInt(p1ayerid); | |
SetFloat(ang); | |
SendFormatMsg("GetPlayerFacingAngle(%s), ang(%f); Return %i",params,ang,GetPlayerFacingAngle(p1ayerid,ang)); | |
return 1; | |
} | |
ifCMD("/IsPlayerInRangeOfPoint") | |
{ | |
RetMsg("IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)"); | |
GetInt(p1ayerid); | |
GetFloat(range); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("IsPlayerInRangeOfPoint(%s); Return %i",params,IsPlayerInRangeOfPoint(p1ayerid,range,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerDistanceFromPoint") | |
{ | |
RetMsg("GetPlayerDistanceFromPoint(playerid, Float:X, Float:Y, Float:Z)"); | |
GetInt(p1ayerid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("GetPlayerDistanceFromPoint(%s); Return %f",params,GetPlayerDistanceFromPoint(p1ayerid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/IsPlayerStreamedIn") | |
{ | |
RetMsg("IsPlayerStreamedIn(playerid, forplayerid)"); | |
GetInt(p1ayerid); | |
GetInt(forp1ayerid); | |
SendFormatMsg("IsPlayerStreamedIn(%s); Return %i",params,IsPlayerStreamedIn(p1ayerid,forp1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerInterior") | |
{ | |
RetMsg("SetPlayerInterior(playerid,interiorid)"); | |
GetInt(p1ayerid); | |
GetInt(interiorid); | |
SendFormatMsg("SetPlayerInterior(%s); Return %i",params,SetPlayerInterior(p1ayerid,interiorid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerInterior") | |
{ | |
RetMsg("GetPlayerInterior(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerInterior(%s); Return %i",params,GetPlayerInterior(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerHealth") | |
{ | |
RetMsg("SetPlayerHealth(playerid, Float:health)"); | |
GetInt(p1ayerid); | |
GetFloat(health); | |
SendFormatMsg("SetPlayerHealth(%s); Return %i",params,SetPlayerHealth(p1ayerid,health)); | |
return 1; | |
} | |
ifCMD("/GetPlayerHealth") | |
{ | |
RetMsg("GetPlayerHealth(playerid, &Float:health)"); | |
GetInt(p1ayerid); | |
SetFloat(health); | |
SendFormatMsg("GetPlayerHealth(%s), health(%f); Return %i",params,health,GetPlayerHealth(p1ayerid,health)); | |
return 1; | |
} | |
ifCMD("/SetPlayerArmour") | |
{ | |
RetMsg("SetPlayerArmour(playerid, Float:armour)"); | |
GetInt(p1ayerid); | |
GetFloat(armour); | |
SendFormatMsg("SetPlayerArmour(%s); Return %i",params,SetPlayerArmour(p1ayerid,armour)); | |
return 1; | |
} | |
ifCMD("/GetPlayerArmour") | |
{ | |
RetMsg("GetPlayerArmour(playerid, &Float:armour)"); | |
GetInt(p1ayerid); | |
SetFloat(armour); | |
SendFormatMsg("GetPlayerArmour(%s), armour(%f); Return %i",params,armour,GetPlayerArmour(p1ayerid,armour)); | |
return 1; | |
} | |
ifCMD("/SetPlayerAmmo") | |
{ | |
RetMsg("SetPlayerAmmo(playerid, weaponslot, ammo)"); | |
GetInt(p1ayerid); | |
GetInt(weaponslot); | |
GetInt(ammo); | |
SendFormatMsg("SetPlayerAmmo(%s); Return %i",params,SetPlayerAmmo(p1ayerid,weaponslot,ammo)); | |
return 1; | |
} | |
ifCMD("/GetPlayerAmmo") | |
{ | |
RetMsg("GetPlayerAmmo(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerAmmo(%s); Return %i",params,GetPlayerAmmo(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerWeaponState") | |
{ | |
RetMsg("GetPlayerWeaponState(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerWeaponState(%s); Return %i",params,GetPlayerWeaponState(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerTargetPlayer") | |
{ | |
RetMsg("GetPlayerTargetPlayer(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerTargetPlayer(%s); Return %i",params,GetPlayerTargetPlayer(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerTargetActor") | |
{ | |
RetMsg("GetPlayerTargetActor(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerTargetActor(%s); Return %i",params,GetPlayerTargetActor(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerTeam") | |
{ | |
RetMsg("SetPlayerTeam(playerid, teamid)"); | |
GetInt(p1ayerid); | |
GetInt(teamid); | |
SendFormatMsg("SetPlayerTeam(%s); Return %i",params,SetPlayerTeam(p1ayerid,teamid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerTeam") | |
{ | |
RetMsg("GetPlayerTeam(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerTeam(%s); Return %i",params,GetPlayerTeam(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerScore") | |
{ | |
RetMsg("SetPlayerScore(playerid,score)"); | |
GetInt(p1ayerid); | |
GetInt(score); | |
SendFormatMsg("SetPlayerScore(%s); Return %i",params,SetPlayerScore(p1ayerid,score)); | |
return 1; | |
} | |
ifCMD("/GetPlayerScore") | |
{ | |
RetMsg("GetPlayerScore(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerScore(%s); Return %i",params,GetPlayerScore(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerDrunkLevel") | |
{ | |
RetMsg("GetPlayerDrunkLevel(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerDrunkLevel(%s); Return %i",params,GetPlayerDrunkLevel(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerDrunkLevel") | |
{ | |
RetMsg("SetPlayerDrunkLevel(playerid, level)"); | |
GetInt(p1ayerid); | |
GetInt(level); | |
SendFormatMsg("SetPlayerDrunkLevel(%s); Return %i",params,SetPlayerDrunkLevel(p1ayerid,level)); | |
return 1; | |
} | |
ifCMD("/SetPlayerColor") | |
{ | |
RetMsg("SetPlayerColor(playerid,color)"); | |
GetInt(p1ayerid); | |
GetInt(color); | |
SendFormatMsg("SetPlayerColor(%s); Return %i",params,SetPlayerColor(p1ayerid,color)); | |
return 1; | |
} | |
ifCMD("/GetPlayerColor") | |
{ | |
RetMsg("GetPlayerColor(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerColor(%s); Return %i",params,GetPlayerColor(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerSkin") | |
{ | |
RetMsg("SetPlayerSkin(playerid, skinid)"); | |
GetInt(p1ayerid); | |
GetInt(skinid); | |
SendFormatMsg("SetPlayerSkin(%s); Return %i",params,SetPlayerSkin(p1ayerid,skinid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerSkin") | |
{ | |
RetMsg("GetPlayerSkin(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerSkin(%s); Return %i",params,GetPlayerSkin(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GivePlayerWeapon") | |
{ | |
RetMsg("GivePlayerWeapon(playerid, weaponid, ammo)"); | |
GetInt(p1ayerid); | |
GetInt(weaponid); | |
GetInt(ammo); | |
SendFormatMsg("GivePlayerWeapon(%s); Return %i",params,GivePlayerWeapon(p1ayerid,weaponid,ammo)); | |
return 1; | |
} | |
ifCMD("/ResetPlayerWeapons") | |
{ | |
RetMsg("ResetPlayerWeapons(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("ResetPlayerWeapons(%s); Return %i",params,ResetPlayerWeapons(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerArmedWeapon") | |
{ | |
RetMsg("SetPlayerArmedWeapon(playerid, weaponid)"); | |
GetInt(p1ayerid); | |
GetInt(weaponid); | |
SendFormatMsg("SetPlayerArmedWeapon(%s); Return %i",params,SetPlayerArmedWeapon(p1ayerid,weaponid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerWeaponData") | |
{ | |
RetMsg("GetPlayerWeaponData(playerid, slot, &weapons, &ammo)"); | |
GetInt(p1ayerid); | |
GetInt(slot); | |
SetInt(weapons); | |
SetInt(ammo); | |
SendFormatMsg("GetPlayerWeaponData(%s), weapons(%i), ammo(%i); Return %i",params,weapons,ammo,GetPlayerWeaponData(p1ayerid,slot,weapons,ammo)); | |
return 1; | |
} | |
ifCMD("/GivePlayerMoney") | |
{ | |
RetMsg("GivePlayerMoney(playerid,money)"); | |
GetInt(p1ayerid); | |
GetInt(money); | |
SendFormatMsg("GivePlayerMoney(%s); Return %i",params,GivePlayerMoney(p1ayerid,money)); | |
return 1; | |
} | |
ifCMD("/ResetPlayerMoney") | |
{ | |
RetMsg("ResetPlayerMoney(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("ResetPlayerMoney(%s); Return %i",params,ResetPlayerMoney(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerName") | |
{ | |
RetMsg("SetPlayerName(playerid, const name[])"); | |
GetInt(p1ayerid); | |
GetString(name); | |
SendFormatMsg("SetPlayerName(%s); Return %i",params,SetPlayerName(p1ayerid,name)); | |
return 1; | |
} | |
ifCMD("/GetPlayerMoney") | |
{ | |
RetMsg("GetPlayerMoney(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerMoney(%s); Return %i",params,GetPlayerMoney(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerState") | |
{ | |
RetMsg("GetPlayerState(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerState(%s); Return %i",params,GetPlayerState(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerIp") | |
{ | |
RetMsg("GetPlayerIp(playerid, name[], len)"); | |
GetInt(p1ayerid); | |
SetString(name); | |
GetInt(len); | |
SendFormatMsg("GetPlayerIp(%s), name(%s); Return %i",params,name,GetPlayerIp(p1ayerid,name,len)); | |
return 1; | |
} | |
ifCMD("/GetPlayerPing") | |
{ | |
RetMsg("GetPlayerPing(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerPing(%s); Return %i",params,GetPlayerPing(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerWeapon") | |
{ | |
RetMsg("GetPlayerWeapon(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerWeapon(%s); Return %i",params,GetPlayerWeapon(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerKeys") | |
{ | |
RetMsg("GetPlayerKeys(playerid, &keys, &updown, &leftright)"); | |
GetInt(p1ayerid); | |
SetInt(keys); | |
SetInt(updown); | |
SetInt(leftright); | |
SendFormatMsg("GetPlayerKeys(%s), keys(%i), updown(%i), leftright(%i); Return %i",params,keys,updown,leftright,GetPlayerKeys(p1ayerid,keys,updown,leftright)); | |
return 1; | |
} | |
ifCMD("/GetPlayerName") | |
{ | |
RetMsg("GetPlayerName(playerid, name[], len)"); | |
GetInt(p1ayerid); | |
SetString(name); | |
GetInt(len); | |
SendFormatMsg("GetPlayerName(%s), name(%s); Return %i",params,name,GetPlayerName(p1ayerid,name,len)); | |
return 1; | |
} | |
ifCMD("/SetPlayerTime") | |
{ | |
RetMsg("SetPlayerTime(playerid, hour, minute)"); | |
GetInt(p1ayerid); | |
GetInt(hour); | |
GetInt(minute); | |
SendFormatMsg("SetPlayerTime(%s); Return %i",params,SetPlayerTime(p1ayerid,hour,minute)); | |
return 1; | |
} | |
ifCMD("/GetPlayerTime") | |
{ | |
RetMsg("GetPlayerTime(playerid, &hour, &minute)"); | |
GetInt(p1ayerid); | |
SetInt(hour); | |
SetInt(minute); | |
SendFormatMsg("GetPlayerTime(%s), hour(%i), minute(%i); Return %i",params,hour,minute,GetPlayerTime(p1ayerid,hour,minute)); | |
return 1; | |
} | |
ifCMD("/TogglePlayerClock") | |
{ | |
RetMsg("TogglePlayerClock(playerid, toggle)"); | |
GetInt(p1ayerid); | |
GetInt(toggle); | |
SendFormatMsg("TogglePlayerClock(%s); Return %i",params,TogglePlayerClock(p1ayerid,toggle)); | |
return 1; | |
} | |
ifCMD("/SetPlayerWeather") | |
{ | |
RetMsg("SetPlayerWeather(playerid, weather)"); | |
GetInt(p1ayerid); | |
GetInt(weather); | |
SendFormatMsg("SetPlayerWeather(%s); Return %i",params,SetPlayerWeather(p1ayerid,weather)); | |
return 1; | |
} | |
ifCMD("/ForceClassSelection") | |
{ | |
RetMsg("ForceClassSelection(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("ForceClassSelection(%s); Return %i",params,ForceClassSelection(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerWantedLevel") | |
{ | |
RetMsg("SetPlayerWantedLevel(playerid, level)"); | |
GetInt(p1ayerid); | |
GetInt(level); | |
SendFormatMsg("SetPlayerWantedLevel(%s); Return %i",params,SetPlayerWantedLevel(p1ayerid,level)); | |
return 1; | |
} | |
ifCMD("/GetPlayerWantedLevel") | |
{ | |
RetMsg("GetPlayerWantedLevel(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerWantedLevel(%s); Return %i",params,GetPlayerWantedLevel(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerFightingStyle") | |
{ | |
RetMsg("SetPlayerFightingStyle(playerid, style)"); | |
GetInt(p1ayerid); | |
GetInt(style); | |
SendFormatMsg("SetPlayerFightingStyle(%s); Return %i",params,SetPlayerFightingStyle(p1ayerid,style)); | |
return 1; | |
} | |
ifCMD("/GetPlayerFightingStyle") | |
{ | |
RetMsg("GetPlayerFightingStyle(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerFightingStyle(%s); Return %i",params,GetPlayerFightingStyle(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerVelocity") | |
{ | |
RetMsg("SetPlayerVelocity(playerid, Float:X, Float:Y, Float:Z)"); | |
GetInt(p1ayerid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetPlayerVelocity(%s); Return %i",params,SetPlayerVelocity(p1ayerid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerVelocity") | |
{ | |
RetMsg("GetPlayerVelocity( playerid, &Float:X, &Float:Y, &Float:Z )"); | |
GetInt(p1ayerid); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetPlayerVelocity(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetPlayerVelocity(p1ayerid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/PlayCrimeReportForPlayer") | |
{ | |
RetMsg("PlayCrimeReportForPlayer(playerid, suspectid, crime)"); | |
GetInt(p1ayerid); | |
GetInt(suspectid); | |
GetInt(crime); | |
SendFormatMsg("PlayCrimeReportForPlayer(%s); Return %i",params,PlayCrimeReportForPlayer(p1ayerid,suspectid,crime)); | |
return 1; | |
} | |
ifCMD("/PlayAudioStreamForPlayer") | |
{ | |
RetMsg("PlayAudioStreamForPlayer(playerid, const url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)"); | |
GetInt(p1ayerid); | |
GetString(url); | |
GetFloat(posX); | |
GetFloat(posY); | |
GetFloat(posZ); | |
GetFloat(distance); | |
GetInt(usepos); | |
SendFormatMsg("PlayAudioStreamForPlayer(%s); Return %i",params,PlayAudioStreamForPlayer(p1ayerid,url,posX,posY,posZ,distance,usepos)); | |
return 1; | |
} | |
ifCMD("/StopAudioStreamForPlayer") | |
{ | |
RetMsg("StopAudioStreamForPlayer(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("StopAudioStreamForPlayer(%s); Return %i",params,StopAudioStreamForPlayer(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerShopName") | |
{ | |
RetMsg("SetPlayerShopName(playerid, const shopname[])"); | |
GetInt(p1ayerid); | |
GetString(shopname); | |
SendFormatMsg("SetPlayerShopName(%s); Return %i",params,SetPlayerShopName(p1ayerid,shopname)); | |
return 1; | |
} | |
ifCMD("/SetPlayerSkillLevel") | |
{ | |
RetMsg("SetPlayerSkillLevel(playerid, skill, level)"); | |
GetInt(p1ayerid); | |
GetInt(skill); | |
GetInt(level); | |
SendFormatMsg("SetPlayerSkillLevel(%s); Return %i",params,SetPlayerSkillLevel(p1ayerid,skill,level)); | |
return 1; | |
} | |
ifCMD("/GetPlayerSurfingVehicleID") | |
{ | |
RetMsg("GetPlayerSurfingVehicleID(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerSurfingVehicleID(%s); Return %i",params,GetPlayerSurfingVehicleID(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerSurfingObjectID") | |
{ | |
RetMsg("GetPlayerSurfingObjectID(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerSurfingObjectID(%s); Return %i",params,GetPlayerSurfingObjectID(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/RemoveBuildingForPlayer") | |
{ | |
RetMsg("RemoveBuildingForPlayer(playerid, modelid, Float:fX, Float:fY, Float:fZ, Float:fRadius)"); | |
GetInt(p1ayerid); | |
GetInt(modelid); | |
GetFloat(fX); | |
GetFloat(fY); | |
GetFloat(fZ); | |
GetFloat(fRadius); | |
SendFormatMsg("RemoveBuildingForPlayer(%s); Return %i",params,RemoveBuildingForPlayer(p1ayerid,modelid,fX,fY,fZ,fRadius)); | |
return 1; | |
} | |
ifCMD("/GetPlayerLastShotVectors") | |
{ | |
RetMsg("GetPlayerLastShotVectors(playerid, &Float:fOriginX, &Float:fOriginY, &Float:fOriginZ, &Float:fHitPosX, &Float:fHitPosY, &Float:fHitPosZ)"); | |
GetInt(p1ayerid); | |
SetFloat(fOriginX); | |
SetFloat(fOriginY); | |
SetFloat(fOriginZ); | |
SetFloat(fHitPosX); | |
SetFloat(fHitPosY); | |
SetFloat(fHitPosZ); | |
SendFormatMsg("GetPlayerLastShotVectors(%s), fOriginX(%f), fOriginY(%f), fOriginZ(%f), fHitPosX(%f), fHitPosY(%f), fHitPosZ(%f); Return %i",params,fOriginX,fOriginY,fOriginZ,fHitPosX,fHitPosY,fHitPosZ,GetPlayerLastShotVectors(p1ayerid,fOriginX,fOriginY,fOriginZ,fHitPosX,fHitPosY,fHitPosZ)); | |
return 1; | |
} | |
ifCMD("/SetPlayerAttachedObject") | |
{ | |
RetMsg("SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX = 0.0, Float:fOffsetY = 0.0, Float:fOffsetZ = 0.0, Float:fRotX = 0.0, Float:fRotY = 0.0, Float:fRotZ = 0.0, Float:fScaleX = 1.0, Float:fScaleY = 1.0, Float:fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0)"); | |
GetInt(p1ayerid); | |
GetInt(index); | |
GetInt(modelid); | |
GetInt(bone); | |
GetFloat(fOffsetX); | |
GetFloat(fOffsetY); | |
GetFloat(fOffsetZ); | |
GetFloat(fRotX); | |
GetFloat(fRotY); | |
GetFloat(fRotZ); | |
GetFloat(fScaleX); | |
GetFloat(fScaleY); | |
GetFloat(fScaleZ); | |
GetInt(materialcolor1); | |
GetInt(materialcolor2); | |
SendFormatMsg("SetPlayerAttachedObject(%s); Return %i",params,SetPlayerAttachedObject(p1ayerid,index,modelid,bone,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ,materialcolor1,materialcolor2)); | |
return 1; | |
} | |
ifCMD("/RemovePlayerAttachedObject") | |
{ | |
RetMsg("RemovePlayerAttachedObject(playerid, index)"); | |
GetInt(p1ayerid); | |
GetInt(index); | |
SendFormatMsg("RemovePlayerAttachedObject(%s); Return %i",params,RemovePlayerAttachedObject(p1ayerid,index)); | |
return 1; | |
} | |
ifCMD("/IsPlayerAttachedObjectSlotUsed") | |
{ | |
RetMsg("IsPlayerAttachedObjectSlotUsed(playerid, index)"); | |
GetInt(p1ayerid); | |
GetInt(index); | |
SendFormatMsg("IsPlayerAttachedObjectSlotUsed(%s); Return %i",params,IsPlayerAttachedObjectSlotUsed(p1ayerid,index)); | |
return 1; | |
} | |
ifCMD("/EditAttachedObject") | |
{ | |
RetMsg("EditAttachedObject(playerid, index)"); | |
GetInt(p1ayerid); | |
GetInt(index); | |
SendFormatMsg("EditAttachedObject(%s); Return %i",params,EditAttachedObject(p1ayerid,index)); | |
return 1; | |
} | |
ifCMD("/CreatePlayerTextDraw") | |
{ | |
RetMsg("CreatePlayerTextDraw(playerid, Float:x, Float:y, const text[])"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetString(text); | |
SendFormatMsg("CreatePlayerTextDraw(%s); Return %i",params,_:CreatePlayerTextDraw(p1ayerid,x,y,text)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawDestroy") | |
{ | |
RetMsg("PlayerTextDrawDestroy(playerid, PlayerText:text)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
SendFormatMsg("PlayerTextDrawDestroy(%s); Return %i",params,PlayerTextDrawDestroy(p1ayerid,text)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawLetterSize") | |
{ | |
RetMsg("PlayerTextDrawLetterSize(playerid, PlayerText:text, Float:x, Float:y)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetFloat(x); | |
GetFloat(y); | |
SendFormatMsg("PlayerTextDrawLetterSize(%s); Return %i",params,PlayerTextDrawLetterSize(p1ayerid,text,x,y)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawTextSize") | |
{ | |
RetMsg("PlayerTextDrawTextSize(playerid, PlayerText:text, Float:x, Float:y)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetFloat(x); | |
GetFloat(y); | |
SendFormatMsg("PlayerTextDrawTextSize(%s); Return %i",params,PlayerTextDrawTextSize(p1ayerid,text,x,y)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawAlignment") | |
{ | |
RetMsg("PlayerTextDrawAlignment(playerid, PlayerText:text, alignment)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(alignment); | |
SendFormatMsg("PlayerTextDrawAlignment(%s); Return %i",params,PlayerTextDrawAlignment(p1ayerid,text,alignment)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawColor") | |
{ | |
RetMsg("PlayerTextDrawColor(playerid, PlayerText:text, color)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(color); | |
SendFormatMsg("PlayerTextDrawColor(%s); Return %i",params,PlayerTextDrawColor(p1ayerid,text,color)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawUseBox") | |
{ | |
RetMsg("PlayerTextDrawUseBox(playerid, PlayerText:text, use)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(use); | |
SendFormatMsg("PlayerTextDrawUseBox(%s); Return %i",params,PlayerTextDrawUseBox(p1ayerid,text,use)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawBoxColor") | |
{ | |
RetMsg("PlayerTextDrawBoxColor(playerid, PlayerText:text, color)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(color); | |
SendFormatMsg("PlayerTextDrawBoxColor(%s); Return %i",params,PlayerTextDrawBoxColor(p1ayerid,text,color)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetShadow") | |
{ | |
RetMsg("PlayerTextDrawSetShadow(playerid, PlayerText:text, size)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(size); | |
SendFormatMsg("PlayerTextDrawSetShadow(%s); Return %i",params,PlayerTextDrawSetShadow(p1ayerid,text,size)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetOutline") | |
{ | |
RetMsg("PlayerTextDrawSetOutline(playerid, PlayerText:text, size)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(size); | |
SendFormatMsg("PlayerTextDrawSetOutline(%s); Return %i",params,PlayerTextDrawSetOutline(p1ayerid,text,size)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawBackgroundColor") | |
{ | |
RetMsg("PlayerTextDrawBackgroundColor(playerid, PlayerText:text, color)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(color); | |
SendFormatMsg("PlayerTextDrawBackgroundColor(%s); Return %i",params,PlayerTextDrawBackgroundColor(p1ayerid,text,color)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawFont") | |
{ | |
RetMsg("PlayerTextDrawFont(playerid, PlayerText:text, font)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(font); | |
SendFormatMsg("PlayerTextDrawFont(%s); Return %i",params,PlayerTextDrawFont(p1ayerid,text,font)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetProportional") | |
{ | |
RetMsg("PlayerTextDrawSetProportional(playerid, PlayerText:text, set)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(set); | |
SendFormatMsg("PlayerTextDrawSetProportional(%s); Return %i",params,PlayerTextDrawSetProportional(p1ayerid,text,set)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetSelectable") | |
{ | |
RetMsg("PlayerTextDrawSetSelectable(playerid, PlayerText:text, set)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(set); | |
SendFormatMsg("PlayerTextDrawSetSelectable(%s); Return %i",params,PlayerTextDrawSetSelectable(p1ayerid,text,set)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawShow") | |
{ | |
RetMsg("PlayerTextDrawShow(playerid, PlayerText:text)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
SendFormatMsg("PlayerTextDrawShow(%s); Return %i",params,PlayerTextDrawShow(p1ayerid,text)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawHide") | |
{ | |
RetMsg("PlayerTextDrawHide(playerid, PlayerText:text)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
SendFormatMsg("PlayerTextDrawHide(%s); Return %i",params,PlayerTextDrawHide(p1ayerid,text)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetString") | |
{ | |
RetMsg("PlayerTextDrawSetString(playerid, PlayerText:text, const string[])"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetString(string); | |
SendFormatMsg("PlayerTextDrawSetString(%s); Return %i",params,PlayerTextDrawSetString(p1ayerid,text,string)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetPreviewModel") | |
{ | |
RetMsg("PlayerTextDrawSetPreviewModel(playerid, PlayerText:text, modelindex)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(modelindex); | |
SendFormatMsg("PlayerTextDrawSetPreviewModel(%s); Return %i",params,PlayerTextDrawSetPreviewModel(p1ayerid,text,modelindex)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetPreviewRot") | |
{ | |
RetMsg("PlayerTextDrawSetPreviewRot(playerid, PlayerText:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetFloat(fRotX); | |
GetFloat(fRotY); | |
GetFloat(fRotZ); | |
GetFloat(fZoom); | |
SendFormatMsg("PlayerTextDrawSetPreviewRot(%s); Return %i",params,PlayerTextDrawSetPreviewRot(p1ayerid,text,fRotX,fRotY,fRotZ,fZoom)); | |
return 1; | |
} | |
ifCMD("/PlayerTextDrawSetPreviewVehCol") | |
{ | |
RetMsg("PlayerTextDrawSetPreviewVehCol(playerid, PlayerText:text, color1, color2)"); | |
GetInt(p1ayerid); | |
GetPlayerText(text); | |
GetInt(color1); | |
GetInt(color2); | |
SendFormatMsg("PlayerTextDrawSetPreviewVehCol(%s); Return %i",params,PlayerTextDrawSetPreviewVehCol(p1ayerid,text,color1,color2)); | |
return 1; | |
} | |
ifCMD("/SetPVarInt") | |
{ | |
RetMsg("SetPVarInt(playerid, const varname[], int_value)"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
GetInt(int_value); | |
SendFormatMsg("SetPVarInt(%s); Return %i",params,SetPVarInt(p1ayerid,varname,int_value)); | |
return 1; | |
} | |
ifCMD("/GetPVarInt") | |
{ | |
RetMsg("GetPVarInt(playerid, const varname[])"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
SendFormatMsg("GetPVarInt(%s); Return %i",params,GetPVarInt(p1ayerid,varname)); | |
return 1; | |
} | |
ifCMD("/SetPVarString") | |
{ | |
RetMsg("SetPVarString(playerid, const varname[], const string_value[])"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
GetString(string_value); | |
SendFormatMsg("SetPVarString(%s); Return %i",params,SetPVarString(p1ayerid,varname,string_value)); | |
return 1; | |
} | |
ifCMD("/GetPVarString") | |
{ | |
RetMsg("GetPVarString(playerid, const varname[], string_return[], len)"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
SetString(string_return); | |
GetInt(len); | |
SendFormatMsg("GetPVarString(%s), string_return(%s); Return %i",params,string_return,GetPVarString(p1ayerid,varname,string_return,len)); | |
return 1; | |
} | |
ifCMD("/SetPVarFloat") | |
{ | |
RetMsg("SetPVarFloat(playerid, const varname[], Float:float_value)"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
GetFloat(float_value); | |
SendFormatMsg("SetPVarFloat(%s); Return %i",params,SetPVarFloat(p1ayerid,varname,float_value)); | |
return 1; | |
} | |
ifCMD("/GetPVarFloat") | |
{ | |
RetMsg("GetPVarFloat(playerid, const varname[])"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
SendFormatMsg("GetPVarFloat(%s); Return %f",params,GetPVarFloat(p1ayerid,varname)); | |
return 1; | |
} | |
ifCMD("/DeletePVar") | |
{ | |
RetMsg("DeletePVar(playerid, const varname[])"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
SendFormatMsg("DeletePVar(%s); Return %i",params,DeletePVar(p1ayerid,varname)); | |
return 1; | |
} | |
ifCMD("/GetPVarsUpperIndex") | |
{ | |
RetMsg("GetPVarsUpperIndex(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPVarsUpperIndex(%s); Return %i",params,GetPVarsUpperIndex(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPVarNameAtIndex") | |
{ | |
RetMsg("GetPVarNameAtIndex(playerid, index, ret_varname[], ret_len)"); | |
GetInt(p1ayerid); | |
GetInt(index); | |
SetString(ret_varname); | |
GetInt(ret_len); | |
SendFormatMsg("GetPVarNameAtIndex(%s), ret_varname(%s); Return %i",params,ret_varname,GetPVarNameAtIndex(p1ayerid,index,ret_varname,ret_len)); | |
return 1; | |
} | |
ifCMD("/GetPVarType") | |
{ | |
RetMsg("GetPVarType(playerid, const varname[])"); | |
GetInt(p1ayerid); | |
GetString(varname); | |
SendFormatMsg("GetPVarType(%s); Return %i",params,GetPVarType(p1ayerid,varname)); | |
return 1; | |
} | |
ifCMD("/SetPlayerChatBubble") | |
{ | |
RetMsg("SetPlayerChatBubble(playerid, const text[], color, Float:drawdistance, expiretime)"); | |
GetInt(p1ayerid); | |
GetString(text); | |
GetInt(color); | |
GetFloat(drawdistance); | |
GetInt(expiretime); | |
SendFormatMsg("SetPlayerChatBubble(%s); Return %i",params,SetPlayerChatBubble(p1ayerid,text,color,drawdistance,expiretime)); | |
return 1; | |
} | |
ifCMD("/PutPlayerInVehicle") | |
{ | |
RetMsg("PutPlayerInVehicle(playerid, vehicleid, seatid)"); | |
GetInt(p1ayerid); | |
GetInt(vehicleid); | |
GetInt(seatid); | |
SendFormatMsg("PutPlayerInVehicle(%s); Return %i",params,PutPlayerInVehicle(p1ayerid,vehicleid,seatid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerVehicleID") | |
{ | |
RetMsg("GetPlayerVehicleID(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerVehicleID(%s); Return %i",params,GetPlayerVehicleID(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerVehicleSeat") | |
{ | |
RetMsg("GetPlayerVehicleSeat(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerVehicleSeat(%s); Return %i",params,GetPlayerVehicleSeat(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/RemovePlayerFromVehicle") | |
{ | |
RetMsg("RemovePlayerFromVehicle(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("RemovePlayerFromVehicle(%s); Return %i",params,RemovePlayerFromVehicle(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/TogglePlayerControllable") | |
{ | |
RetMsg("TogglePlayerControllable(playerid, toggle)"); | |
GetInt(p1ayerid); | |
GetInt(toggle); | |
SendFormatMsg("TogglePlayerControllable(%s); Return %i",params,TogglePlayerControllable(p1ayerid,toggle)); | |
return 1; | |
} | |
ifCMD("/PlayerPlaySound") | |
{ | |
RetMsg("PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z)"); | |
GetInt(p1ayerid); | |
GetInt(soundid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("PlayerPlaySound(%s); Return %i",params,PlayerPlaySound(p1ayerid,soundid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/ApplyAnimation") | |
{ | |
RetMsg("ApplyAnimation(playerid, const animlib[], const animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0)"); | |
GetInt(p1ayerid); | |
GetString(animlib); | |
GetString(animname); | |
GetFloat(fDelta); | |
GetInt(loop); | |
GetInt(lockx); | |
GetInt(locky); | |
GetInt(freeze); | |
GetInt(time); | |
GetInt(forcesync); | |
SendFormatMsg("ApplyAnimation(%s); Return %i",params,ApplyAnimation(p1ayerid,animlib,animname,fDelta,loop,lockx,locky,freeze,time,forcesync)); | |
return 1; | |
} | |
ifCMD("/ClearAnimations") | |
{ | |
RetMsg("ClearAnimations(playerid, forcesync = 0)"); | |
GetInt(p1ayerid); | |
GetInt(forcesync); | |
SendFormatMsg("ClearAnimations(%s); Return %i",params,ClearAnimations(p1ayerid,forcesync)); | |
return 1; | |
} | |
ifCMD("/GetPlayerAnimationIndex") | |
{ | |
RetMsg("GetPlayerAnimationIndex(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerAnimationIndex(%s); Return %i",params,GetPlayerAnimationIndex(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetAnimationName") | |
{ | |
RetMsg("GetAnimationName(index, animlib[], len1, animname[], len2)"); | |
GetInt(index); | |
SetString(animlib); | |
GetInt(len1); | |
SetString(animname); | |
GetInt(len2); | |
SendFormatMsg("GetAnimationName(%s), animlib(%s), animname(%s); Return %i",params,animlib,animname,GetAnimationName(index,animlib,len1,animname,len2)); | |
return 1; | |
} | |
ifCMD("/GetPlayerSpecialAction") | |
{ | |
RetMsg("GetPlayerSpecialAction(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerSpecialAction(%s); Return %i",params,GetPlayerSpecialAction(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerSpecialAction") | |
{ | |
RetMsg("SetPlayerSpecialAction(playerid,actionid)"); | |
GetInt(p1ayerid); | |
GetInt(actionid); | |
SendFormatMsg("SetPlayerSpecialAction(%s); Return %i",params,SetPlayerSpecialAction(p1ayerid,actionid)); | |
return 1; | |
} | |
ifCMD("/DisableRemoteVehicleCollisions") | |
{ | |
RetMsg("DisableRemoteVehicleCollisions(playerid, disable)"); | |
GetInt(p1ayerid); | |
GetInt(disable); | |
SendFormatMsg("DisableRemoteVehicleCollisions(%s); Return %i",params,DisableRemoteVehicleCollisions(p1ayerid,disable)); | |
return 1; | |
} | |
ifCMD("/SetPlayerCheckpoint") | |
{ | |
RetMsg("SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size)"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetFloat(size); | |
SendFormatMsg("SetPlayerCheckpoint(%s); Return %i",params,SetPlayerCheckpoint(p1ayerid,x,y,z,size)); | |
return 1; | |
} | |
ifCMD("/DisablePlayerCheckpoint") | |
{ | |
RetMsg("DisablePlayerCheckpoint(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("DisablePlayerCheckpoint(%s); Return %i",params,DisablePlayerCheckpoint(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerRaceCheckpoint") | |
{ | |
RetMsg("SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size)"); | |
GetInt(p1ayerid); | |
GetInt(type); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetFloat(nextx); | |
GetFloat(nexty); | |
GetFloat(nextz); | |
GetFloat(size); | |
SendFormatMsg("SetPlayerRaceCheckpoint(%s); Return %i",params,SetPlayerRaceCheckpoint(p1ayerid,type,x,y,z,nextx,nexty,nextz,size)); | |
return 1; | |
} | |
ifCMD("/DisablePlayerRaceCheckpoint") | |
{ | |
RetMsg("DisablePlayerRaceCheckpoint(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("DisablePlayerRaceCheckpoint(%s); Return %i",params,DisablePlayerRaceCheckpoint(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerWorldBounds") | |
{ | |
RetMsg("SetPlayerWorldBounds(playerid,Float:x_max,Float:x_min,Float:y_max,Float:y_min)"); | |
GetInt(p1ayerid); | |
GetFloat(x_max); | |
GetFloat(x_min); | |
GetFloat(y_max); | |
GetFloat(y_min); | |
SendFormatMsg("SetPlayerWorldBounds(%s); Return %i",params,SetPlayerWorldBounds(p1ayerid,x_max,x_min,y_max,y_min)); | |
return 1; | |
} | |
ifCMD("/SetPlayerMarkerForPlayer") | |
{ | |
RetMsg("SetPlayerMarkerForPlayer(playerid, showplayerid, color)"); | |
GetInt(p1ayerid); | |
GetInt(showp1ayerid); | |
GetInt(color); | |
SendFormatMsg("SetPlayerMarkerForPlayer(%s); Return %i",params,SetPlayerMarkerForPlayer(p1ayerid,showp1ayerid,color)); | |
return 1; | |
} | |
ifCMD("/ShowPlayerNameTagForPlayer") | |
{ | |
RetMsg("ShowPlayerNameTagForPlayer(playerid, showplayerid, show)"); | |
GetInt(p1ayerid); | |
GetInt(showp1ayerid); | |
GetInt(show); | |
SendFormatMsg("ShowPlayerNameTagForPlayer(%s); Return %i",params,ShowPlayerNameTagForPlayer(p1ayerid,showp1ayerid,show)); | |
return 1; | |
} | |
ifCMD("/SetPlayerMapIcon") | |
{ | |
RetMsg("SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = MAPICON_LOCAL)"); | |
GetInt(p1ayerid); | |
GetInt(iconid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetInt(markertype); | |
GetInt(color); | |
GetInt(style); | |
SendFormatMsg("SetPlayerMapIcon(%s); Return %i",params,SetPlayerMapIcon(p1ayerid,iconid,x,y,z,markertype,color,style)); | |
return 1; | |
} | |
ifCMD("/RemovePlayerMapIcon") | |
{ | |
RetMsg("RemovePlayerMapIcon(playerid, iconid)"); | |
GetInt(p1ayerid); | |
GetInt(iconid); | |
SendFormatMsg("RemovePlayerMapIcon(%s); Return %i",params,RemovePlayerMapIcon(p1ayerid,iconid)); | |
return 1; | |
} | |
ifCMD("/AllowPlayerTeleport") | |
{ | |
RetMsg("AllowPlayerTeleport(playerid, allow)"); | |
GetInt(p1ayerid); | |
GetInt(allow); | |
SendFormatMsg("AllowPlayerTeleport(%s); Return %i",params,AllowPlayerTeleport(p1ayerid,allow)); | |
return 1; | |
} | |
ifCMD("/SetPlayerCameraPos") | |
{ | |
RetMsg("SetPlayerCameraPos(playerid,Float:x, Float:y, Float:z)"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("SetPlayerCameraPos(%s); Return %i",params,SetPlayerCameraPos(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/SetPlayerCameraLookAt") | |
{ | |
RetMsg("SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z, cut = CAMERA_CUT)"); | |
GetInt(p1ayerid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetInt(cut); | |
SendFormatMsg("SetPlayerCameraLookAt(%s); Return %i",params,SetPlayerCameraLookAt(p1ayerid,x,y,z,cut)); | |
return 1; | |
} | |
ifCMD("/SetCameraBehindPlayer") | |
{ | |
RetMsg("SetCameraBehindPlayer(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("SetCameraBehindPlayer(%s); Return %i",params,SetCameraBehindPlayer(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraPos") | |
{ | |
RetMsg("GetPlayerCameraPos(playerid, &Float:x, &Float:y, &Float:z)"); | |
GetInt(p1ayerid); | |
SetFloat(x); | |
SetFloat(y); | |
SetFloat(z); | |
SendFormatMsg("GetPlayerCameraPos(%s), x(%f), y(%f), z(%f); Return %i",params,x,y,z,GetPlayerCameraPos(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraFrontVector") | |
{ | |
RetMsg("GetPlayerCameraFrontVector(playerid, &Float:x, &Float:y, &Float:z)"); | |
GetInt(p1ayerid); | |
SetFloat(x); | |
SetFloat(y); | |
SetFloat(z); | |
SendFormatMsg("GetPlayerCameraFrontVector(%s), x(%f), y(%f), z(%f); Return %i",params,x,y,z,GetPlayerCameraFrontVector(p1ayerid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraMode") | |
{ | |
RetMsg("GetPlayerCameraMode(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraMode(%s); Return %i",params,GetPlayerCameraMode(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/EnablePlayerCameraTarget") | |
{ | |
RetMsg("EnablePlayerCameraTarget(playerid, enable)"); | |
GetInt(p1ayerid); | |
GetInt(enable); | |
SendFormatMsg("EnablePlayerCameraTarget(%s); Return %i",params,EnablePlayerCameraTarget(p1ayerid,enable)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraTargetObject") | |
{ | |
RetMsg("GetPlayerCameraTargetObject(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraTargetObject(%s); Return %i",params,GetPlayerCameraTargetObject(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraTargetVehicle") | |
{ | |
RetMsg("GetPlayerCameraTargetVehicle(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraTargetVehicle(%s); Return %i",params,GetPlayerCameraTargetVehicle(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraTargetPlayer") | |
{ | |
RetMsg("GetPlayerCameraTargetPlayer(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraTargetPlayer(%s); Return %i",params,GetPlayerCameraTargetPlayer(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraTargetActor") | |
{ | |
RetMsg("GetPlayerCameraTargetActor(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraTargetActor(%s); Return %i",params,GetPlayerCameraTargetActor(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraAspectRatio") | |
{ | |
RetMsg("GetPlayerCameraAspectRatio(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraAspectRatio(%s); Return %f",params,GetPlayerCameraAspectRatio(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerCameraZoom") | |
{ | |
RetMsg("GetPlayerCameraZoom(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerCameraZoom(%s); Return %f",params,GetPlayerCameraZoom(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/AttachCameraToObject") | |
{ | |
RetMsg("AttachCameraToObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("AttachCameraToObject(%s); Return %i",params,AttachCameraToObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/AttachCameraToPlayerObject") | |
{ | |
RetMsg("AttachCameraToPlayerObject(playerid, playerobjectid)"); | |
GetInt(p1ayerid); | |
GetInt(playerobjectid); | |
SendFormatMsg("AttachCameraToPlayerObject(%s); Return %i",params,AttachCameraToPlayerObject(p1ayerid,playerobjectid)); | |
return 1; | |
} | |
ifCMD("/InterpolateCameraPos") | |
{ | |
RetMsg("InterpolateCameraPos(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT)"); | |
GetInt(p1ayerid); | |
GetFloat(FromX); | |
GetFloat(FromY); | |
GetFloat(FromZ); | |
GetFloat(ToX); | |
GetFloat(ToY); | |
GetFloat(ToZ); | |
GetInt(time); | |
GetInt(cut); | |
SendFormatMsg("InterpolateCameraPos(%s); Return %i",params,InterpolateCameraPos(p1ayerid,FromX,FromY,FromZ,ToX,ToY,ToZ,time,cut)); | |
return 1; | |
} | |
ifCMD("/InterpolateCameraLookAt") | |
{ | |
RetMsg("InterpolateCameraLookAt(playerid, Float:FromX, Float:FromY, Float:FromZ, Float:ToX, Float:ToY, Float:ToZ, time, cut = CAMERA_CUT)"); | |
GetInt(p1ayerid); | |
GetFloat(FromX); | |
GetFloat(FromY); | |
GetFloat(FromZ); | |
GetFloat(ToX); | |
GetFloat(ToY); | |
GetFloat(ToZ); | |
GetInt(time); | |
GetInt(cut); | |
SendFormatMsg("InterpolateCameraLookAt(%s); Return %i",params,InterpolateCameraLookAt(p1ayerid,FromX,FromY,FromZ,ToX,ToY,ToZ,time,cut)); | |
return 1; | |
} | |
ifCMD("/IsPlayerConnected") | |
{ | |
RetMsg("IsPlayerConnected(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerConnected(%s); Return %i",params,IsPlayerConnected(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerInVehicle") | |
{ | |
RetMsg("IsPlayerInVehicle(playerid, vehicleid)"); | |
GetInt(p1ayerid); | |
GetInt(vehicleid); | |
SendFormatMsg("IsPlayerInVehicle(%s); Return %i",params,IsPlayerInVehicle(p1ayerid,vehicleid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerInAnyVehicle") | |
{ | |
RetMsg("IsPlayerInAnyVehicle(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerInAnyVehicle(%s); Return %i",params,IsPlayerInAnyVehicle(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerInCheckpoint") | |
{ | |
RetMsg("IsPlayerInCheckpoint(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerInCheckpoint(%s); Return %i",params,IsPlayerInCheckpoint(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerInRaceCheckpoint") | |
{ | |
RetMsg("IsPlayerInRaceCheckpoint(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerInRaceCheckpoint(%s); Return %i",params,IsPlayerInRaceCheckpoint(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerVirtualWorld") | |
{ | |
RetMsg("SetPlayerVirtualWorld(playerid, worldid)"); | |
GetInt(p1ayerid); | |
GetInt(worldid); | |
SendFormatMsg("SetPlayerVirtualWorld(%s); Return %i",params,SetPlayerVirtualWorld(p1ayerid,worldid)); | |
return 1; | |
} | |
ifCMD("/GetPlayerVirtualWorld") | |
{ | |
RetMsg("GetPlayerVirtualWorld(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerVirtualWorld(%s); Return %i",params,GetPlayerVirtualWorld(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/EnableStuntBonusForPlayer") | |
{ | |
RetMsg("EnableStuntBonusForPlayer(playerid, enable)"); | |
GetInt(p1ayerid); | |
GetInt(enable); | |
SendFormatMsg("EnableStuntBonusForPlayer(%s); Return %i",params,EnableStuntBonusForPlayer(p1ayerid,enable)); | |
return 1; | |
} | |
ifCMD("/EnableStuntBonusForAll") | |
{ | |
RetMsg("EnableStuntBonusForAll(enable)"); | |
GetInt(enable); | |
SendFormatMsg("EnableStuntBonusForAll(%s); Return %i",params,EnableStuntBonusForAll(enable)); | |
return 1; | |
} | |
ifCMD("/TogglePlayerSpectating") | |
{ | |
RetMsg("TogglePlayerSpectating(playerid, toggle)"); | |
GetInt(p1ayerid); | |
GetInt(toggle); | |
SendFormatMsg("TogglePlayerSpectating(%s); Return %i",params,TogglePlayerSpectating(p1ayerid,toggle)); | |
return 1; | |
} | |
ifCMD("/PlayerSpectatePlayer") | |
{ | |
RetMsg("PlayerSpectatePlayer(playerid, targetplayerid, mode = SPECTATE_MODE_NORMAL)"); | |
GetInt(p1ayerid); | |
GetInt(targetp1ayerid); | |
GetInt(mode); | |
SendFormatMsg("PlayerSpectatePlayer(%s); Return %i",params,PlayerSpectatePlayer(p1ayerid,targetp1ayerid,mode)); | |
return 1; | |
} | |
ifCMD("/PlayerSpectateVehicle") | |
{ | |
RetMsg("PlayerSpectateVehicle(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL)"); | |
GetInt(p1ayerid); | |
GetInt(targetvehicleid); | |
GetInt(mode); | |
SendFormatMsg("PlayerSpectateVehicle(%s); Return %i",params,PlayerSpectateVehicle(p1ayerid,targetvehicleid,mode)); | |
return 1; | |
} | |
ifCMD("/StartRecordingPlayerData") | |
{ | |
RetMsg("StartRecordingPlayerData(playerid, recordtype, const recordname[])"); | |
GetInt(p1ayerid); | |
GetInt(recordtype); | |
GetString(recordname); | |
SendFormatMsg("StartRecordingPlayerData(%s); Return %i",params,StartRecordingPlayerData(p1ayerid,recordtype,recordname)); | |
return 1; | |
} | |
ifCMD("/StopRecordingPlayerData") | |
{ | |
RetMsg("StopRecordingPlayerData(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("StopRecordingPlayerData(%s); Return %i",params,StopRecordingPlayerData(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/SelectTextDraw") | |
{ | |
RetMsg("SelectTextDraw(playerid, hovercolor)"); | |
GetInt(p1ayerid); | |
GetInt(hovercolor); | |
SendFormatMsg("SelectTextDraw(%s); Return %i",params,SelectTextDraw(p1ayerid,hovercolor)); | |
return 1; | |
} | |
ifCMD("/CancelSelectTextDraw") | |
{ | |
RetMsg("CancelSelectTextDraw(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("CancelSelectTextDraw(%s); Return %i",params,CancelSelectTextDraw(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/CreateExplosionForPlayer") | |
{ | |
RetMsg("CreateExplosionForPlayer(playerid, Float:X, Float:Y, Float:Z, type, Float:Radius)"); | |
GetInt(p1ayerid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetInt(type); | |
GetFloat(Radius); | |
SendFormatMsg("CreateExplosionForPlayer(%s); Return %i",params,CreateExplosionForPlayer(p1ayerid,X,Y,Z,type,Radius)); | |
return 1; | |
} | |
ifCMD("/a_players.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"SetSpawnInfo\nSpawnPlayer\nSetPlayerPos\nSetPlayerPosFindZ\nGetPlayerPos\nSetPlayerFacingAngle\nGetPlayerFacingAngle\nIsPlayerInRangeOfPoint\nGetPlayerDistanceFromPoint\nIsPlayerStreamedIn\nSetPlayerInterior\nGetPlayerInterior\nSetPlayerHealth\nGetPlayerHealth\nSetPlayerArmour\nGetPlayerArmour\nSetPlayerAmmo\nGetPlayerAmmo\nGetPlayerWeaponState\nGetPlayerTargetPlayer\nGetPlayerTargetActor\nSetPlayerTeam\nGetPlayerTeam\nSetPlayerScore\nGetPlayerScore\nGetPlayerDrunkLevel\nSetPlayerDru"); | |
strcat(CmdList,"nkLevel\nSetPlayerColor\nGetPlayerColor\nSetPlayerSkin\nGetPlayerSkin\nGivePlayerWeapon\nResetPlayerWeapons\nSetPlayerArmedWeapon\nGetPlayerWeaponData\nGivePlayerMoney\nResetPlayerMoney\nSetPlayerName\nGetPlayerMoney\nGetPlayerState\nGetPlayerIp\nGetPlayerPing\nGetPlayerWeapon\nGetPlayerKeys\nGetPlayerName\nSetPlayerTime\nGetPlayerTime\nTogglePlayerClock\nSetPlayerWeather\nForceClassSelection\nSetPlayerWantedLevel\nGetPlayerWantedLevel\nSetPlayerFightingStyle\nGetPlayerFightingStyle"); | |
strcat(CmdList,"\n"); | |
strcat(CmdList,"SetPlayerVelocity\nGetPlayerVelocity\nPlayCrimeReportForPlayer\nPlayAudioStreamForPlayer\nStopAudioStreamForPlayer\nSetPlayerShopName\nSetPlayerSkillLevel\nGetPlayerSurfingVehicleID\nGetPlayerSurfingObjectID\nRemoveBuildingForPlayer\nGetPlayerLastShotVectors\nSetPlayerAttachedObject\nRemovePlayerAttachedObject\nIsPlayerAttachedObjectSlotUsed\nEditAttachedObject\nCreatePlayerTextDraw\nPlayerTextDrawDestroy\nPlayerTextDrawLetterSize\nPlayerTextDrawTextSize\nPlayerTextDrawAlignment\nPl"); | |
strcat(CmdList,"ayerTextDrawColor\nPlayerTextDrawUseBox\nPlayerTextDrawBoxColor\nPlayerTextDrawSetShadow\nPlayerTextDrawSetOutline\nPlayerTextDrawBackgroundColor\nPlayerTextDrawFont\nPlayerTextDrawSetProportional\nPlayerTextDrawSetSelectable\nPlayerTextDrawShow\nPlayerTextDrawHide\nPlayerTextDrawSetString\nPlayerTextDrawSetPreviewModel\nPlayerTextDrawSetPreviewRot\nPlayerTextDrawSetPreviewVehCol\nSetPVarInt\nGetPVarInt\nSetPVarString\nGetPVarString\nSetPVarFloat\nGetPVarFloat\nDeletePVar\nGetPVarsUp"); | |
strcat(CmdList,"perIndex\nGetPVarNameAtIndex\nGetPVarType\nSetPlayerChatBubble\nPutPlayerInVehicle\nGetPlayerVehicleID\nGetPlayerVehicleSeat\nRemovePlayerFromVehicle\nTogglePlayerControllable\nPlayerPlaySound\nApplyAnimation\nClearAnimations\nGetPlayerAnimationIndex\nGetAnimationName\nGetPlayerSpecialAction\nSetPlayerSpecialAction\nDisableRemoteVehicleCollisions\nSetPlayerCheckpoint\nDisablePlayerCheckpoint\nSetPlayerRaceCheckpoint\nDisablePlayerRaceCheckpoint\nSetPlayerWorldBounds\nSetPlayerMarkerF"); | |
strcat(CmdList,"orPlayer\nShowPlayerNameTagForPlayer\nSetPlayerMapIcon\nRemovePlayerMapIcon\nAllowPlayerTeleport\nSetPlayerCameraPos\nSetPlayerCameraLookAt\nSetCameraBehindPlayer\nGetPlayerCameraPos\nGetPlayerCameraFrontVector\nGetPlayerCameraMode\nEnablePlayerCameraTarget\nGetPlayerCameraTargetObject\nGetPlayerCameraTargetVehicle\nGetPlayerCameraTargetPlayer\nGetPlayerCameraTargetActor\nGetPlayerCameraAspectRatio\nGetPlayerCameraZoom\nAttachCameraToObject\nAttachCameraToPlayerObject\nInterpolateCam"); | |
strcat(CmdList,"eraPos\nInterpolateCameraLookAt\nIsPlayerConnected\nIsPlayerInVehicle\nIsPlayerInAnyVehicle\nIsPlayerInCheckpoint\nIsPlayerInRaceCheckpoint\nSetPlayerVirtualWorld\nGetPlayerVirtualWorld\nEnableStuntBonusForPlayer\nEnableStuntBonusForAll\nTogglePlayerSpectating\nPlayerSpectatePlayer\nPlayerSpectateVehicle\nStartRecordingPlayerData\nStopRecordingPlayerData\nSelectTextDraw\nCancelSelectTextDraw\nCreateExplosionForPlayer"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_players.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/a_players.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_players_included\nSPECIAL_ACTION_NONE 0\nSPECIAL_ACTION_DUCK 1\nSPECIAL_ACTION_USEJETPACK 2\nSPECIAL_ACTION_ENTER_VEHICLE 3\nSPECIAL_ACTION_EXIT_VEHICLE 4\nSPECIAL_ACTION_DANCE1 5\nSPECIAL_ACTION_DANCE2 6\nSPECIAL_ACTION_DANCE3 7\nSPECIAL_ACTION_DANCE4 8\nSPECIAL_ACTION_HANDSUP 10\nSPECIAL_ACTION_USECELLPHONE 11\nSPECIAL_ACTION_SITTING 12\nSPECIAL_ACTION_STOPUSECELLPHONE 13\nSPECIAL_ACTION_DRINK_BEER 20\nSPECIAL_ACTION_SMOKE_CIGGY 21\nSPECIAL_ACTION_DRINK_W"); | |
strcat(DefList,"INE 22\nSPECIAL_ACTION_DRINK_SPRUNK 23\nSPECIAL_ACTION_CUFFED 24\nSPECIAL_ACTION_CARRY 25\nFIGHT_STYLE_NORMAL 4\nFIGHT_STYLE_BOXING 5\nFIGHT_STYLE_KUNGFU 6\nFIGHT_STYLE_KNEEHEAD 7\nFIGHT_STYLE_GRABKICK 15\nFIGHT_STYLE_ELBOW 16\nWEAPONSKILL_PISTOL 0\nWEAPONSKILL_PISTOL_SILENCED 1\nWEAPONSKILL_DESERT_EAGLE 2\nWEAPONSKILL_SHOTGUN 3\nWEAPONSKILL_SAWNOFF_SHOTGUN 4\nWEAPONSKILL_SPAS12_SHOTGUN 5\nWEAPONSKILL_MICRO_UZI 6\nWEAPONSKILL_MP5 7\nWEAPONSKILL_"); | |
strcat(DefList,"AK47 8\nWEAPONSKILL_M4 9\nWEAPONSKILL_SNIPERRIFLE 10\nWEAPONSTATE_UNKNOWN -1\nWEAPONSTATE_NO_BULLETS 0\nWEAPONSTATE_LAST_BULLET 1\nWEAPONSTATE_MORE_BULLETS 2\nWEAPONSTATE_RELOADING 3\nMAX_PLAYER_ATTACHED_OBJECTS 10 \nPLAYER_VARTYPE_NONE 0\nPLAYER_VARTYPE_INT 1\nPLAYER_VARTYPE_STRING 2\nPLAYER_VARTYPE_FLOAT 3\nMAX_CHATBUBBLE_LENGTH 144\nMAPICON_LOCAL 0 \nMAPICON_GLOBAL 1 \nMAPICON_LOCAL_CHECKPOINT 2 \nMAPICON_GLOBAL_CHECKPOINT 3 \nCAMERA_CUT 2\nCAMERA"); | |
strcat(DefList,"_MOVE 1\nSPECTATE_MODE_NORMAL 1\nSPECTATE_MODE_FIXED 2\nSPECTATE_MODE_SIDE 3\nPLAYER_RECORDING_TYPE_NONE 0\nPLAYER_RECORDING_TYPE_DRIVER 1\nPLAYER_RECORDING_TYPE_ONFOOT 2"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_players.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/CreateObject") | |
{ | |
RetMsg("CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)"); | |
GetInt(modelid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(rX); | |
GetFloat(rY); | |
GetFloat(rZ); | |
GetFloat(DrawDistance); | |
SendFormatMsg("CreateObject(%s); Return %i",params,CreateObject(modelid,X,Y,Z,rX,rY,rZ,DrawDistance)); | |
return 1; | |
} | |
ifCMD("/AttachObjectToVehicle") | |
{ | |
RetMsg("AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)"); | |
GetInt(objectid); | |
GetInt(vehicleid); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("AttachObjectToVehicle(%s); Return %i",params,AttachObjectToVehicle(objectid,vehicleid,OffsetX,OffsetY,OffsetZ,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/AttachObjectToObject") | |
{ | |
RetMsg("AttachObjectToObject(objectid, attachtoid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ, SyncRotation = 1)"); | |
GetInt(objectid); | |
GetInt(attachtoid); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
GetInt(SyncRotation); | |
SendFormatMsg("AttachObjectToObject(%s); Return %i",params,AttachObjectToObject(objectid,attachtoid,OffsetX,OffsetY,OffsetZ,RotX,RotY,RotZ,SyncRotation)); | |
return 1; | |
} | |
ifCMD("/AttachObjectToPlayer") | |
{ | |
RetMsg("AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ)"); | |
GetInt(objectid); | |
GetInt(p1ayerid); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("AttachObjectToPlayer(%s); Return %i",params,AttachObjectToPlayer(objectid,p1ayerid,OffsetX,OffsetY,OffsetZ,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/SetObjectPos") | |
{ | |
RetMsg("SetObjectPos(objectid, Float:X, Float:Y, Float:Z)"); | |
GetInt(objectid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetObjectPos(%s); Return %i",params,SetObjectPos(objectid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/GetObjectPos") | |
{ | |
RetMsg("GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z)"); | |
GetInt(objectid); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetObjectPos(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetObjectPos(objectid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetObjectRot") | |
{ | |
RetMsg("SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ)"); | |
GetInt(objectid); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("SetObjectRot(%s); Return %i",params,SetObjectRot(objectid,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/GetObjectRot") | |
{ | |
RetMsg("GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ)"); | |
GetInt(objectid); | |
SetFloat(RotX); | |
SetFloat(RotY); | |
SetFloat(RotZ); | |
SendFormatMsg("GetObjectRot(%s), RotX(%f), RotY(%f), RotZ(%f); Return %i",params,RotX,RotY,RotZ,GetObjectRot(objectid,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/GetObjectModel") | |
{ | |
RetMsg("GetObjectModel(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("GetObjectModel(%s); Return %i",params,GetObjectModel(objectid)); | |
return 1; | |
} | |
ifCMD("/SetObjectNoCameraCol") | |
{ | |
RetMsg("SetObjectNoCameraCol(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("SetObjectNoCameraCol(%s); Return %i",params,SetObjectNoCameraCol(objectid)); | |
return 1; | |
} | |
ifCMD("/IsValidObject") | |
{ | |
RetMsg("IsValidObject(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("IsValidObject(%s); Return %i",params,IsValidObject(objectid)); | |
return 1; | |
} | |
ifCMD("/DestroyObject") | |
{ | |
RetMsg("DestroyObject(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("DestroyObject(%s); Return %i",params,DestroyObject(objectid)); | |
return 1; | |
} | |
ifCMD("/MoveObject") | |
{ | |
RetMsg("MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)"); | |
GetInt(objectid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(Speed); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("MoveObject(%s); Return %i",params,MoveObject(objectid,X,Y,Z,Speed,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/StopObject") | |
{ | |
RetMsg("StopObject(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("StopObject(%s); Return %i",params,StopObject(objectid)); | |
return 1; | |
} | |
ifCMD("/IsObjectMoving") | |
{ | |
RetMsg("IsObjectMoving(objectid)"); | |
GetInt(objectid); | |
SendFormatMsg("IsObjectMoving(%s); Return %i",params,IsObjectMoving(objectid)); | |
return 1; | |
} | |
ifCMD("/EditObject") | |
{ | |
RetMsg("EditObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("EditObject(%s); Return %i",params,EditObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/EditPlayerObject") | |
{ | |
RetMsg("EditPlayerObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("EditPlayerObject(%s); Return %i",params,EditPlayerObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/SelectObject") | |
{ | |
RetMsg("SelectObject(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("SelectObject(%s); Return %i",params,SelectObject(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/CancelEdit") | |
{ | |
RetMsg("CancelEdit(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("CancelEdit(%s); Return %i",params,CancelEdit(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/CreatePlayerObject") | |
{ | |
RetMsg("CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)"); | |
GetInt(p1ayerid); | |
GetInt(modelid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(rX); | |
GetFloat(rY); | |
GetFloat(rZ); | |
GetFloat(DrawDistance); | |
SendFormatMsg("CreatePlayerObject(%s); Return %i",params,CreatePlayerObject(p1ayerid,modelid,X,Y,Z,rX,rY,rZ,DrawDistance)); | |
return 1; | |
} | |
ifCMD("/AttachPlayerObjectToVehicle") | |
{ | |
RetMsg("AttachPlayerObjectToVehicle(playerid, objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetInt(vehicleid); | |
GetFloat(fOffsetX); | |
GetFloat(fOffsetY); | |
GetFloat(fOffsetZ); | |
GetFloat(fRotX); | |
GetFloat(fRotY); | |
GetFloat(RotZ); | |
SendFormatMsg("AttachPlayerObjectToVehicle(%s); Return %i",params,AttachPlayerObjectToVehicle(p1ayerid,objectid,vehicleid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/SetPlayerObjectPos") | |
{ | |
RetMsg("SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetPlayerObjectPos(%s); Return %i",params,SetPlayerObjectPos(p1ayerid,objectid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/GetPlayerObjectPos") | |
{ | |
RetMsg("GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetPlayerObjectPos(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetPlayerObjectPos(p1ayerid,objectid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetPlayerObjectRot") | |
{ | |
RetMsg("SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("SetPlayerObjectRot(%s); Return %i",params,SetPlayerObjectRot(p1ayerid,objectid,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/GetPlayerObjectRot") | |
{ | |
RetMsg("GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SetFloat(RotX); | |
SetFloat(RotY); | |
SetFloat(RotZ); | |
SendFormatMsg("GetPlayerObjectRot(%s), RotX(%f), RotY(%f), RotZ(%f); Return %i",params,RotX,RotY,RotZ,GetPlayerObjectRot(p1ayerid,objectid,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/GetPlayerObjectModel") | |
{ | |
RetMsg("GetPlayerObjectModel(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("GetPlayerObjectModel(%s); Return %i",params,GetPlayerObjectModel(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/SetPlayerObjectNoCameraCol") | |
{ | |
RetMsg("SetPlayerObjectNoCameraCol(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("SetPlayerObjectNoCameraCol(%s); Return %i",params,SetPlayerObjectNoCameraCol(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/IsValidPlayerObject") | |
{ | |
RetMsg("IsValidPlayerObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("IsValidPlayerObject(%s); Return %i",params,IsValidPlayerObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/DestroyPlayerObject") | |
{ | |
RetMsg("DestroyPlayerObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("DestroyPlayerObject(%s); Return %i",params,DestroyPlayerObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/MovePlayerObject") | |
{ | |
RetMsg("MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(Speed); | |
GetFloat(RotX); | |
GetFloat(RotY); | |
GetFloat(RotZ); | |
SendFormatMsg("MovePlayerObject(%s); Return %i",params,MovePlayerObject(p1ayerid,objectid,X,Y,Z,Speed,RotX,RotY,RotZ)); | |
return 1; | |
} | |
ifCMD("/StopPlayerObject") | |
{ | |
RetMsg("StopPlayerObject(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("StopPlayerObject(%s); Return %i",params,StopPlayerObject(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerObjectMoving") | |
{ | |
RetMsg("IsPlayerObjectMoving(playerid, objectid)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
SendFormatMsg("IsPlayerObjectMoving(%s); Return %i",params,IsPlayerObjectMoving(p1ayerid,objectid)); | |
return 1; | |
} | |
ifCMD("/AttachPlayerObjectToPlayer") | |
{ | |
RetMsg("AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)"); | |
GetInt(objectplayer); | |
GetInt(objectid); | |
GetInt(attachplayer); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
GetFloat(rX); | |
GetFloat(rY); | |
GetFloat(rZ); | |
SendFormatMsg("AttachPlayerObjectToPlayer(%s); Return %i",params,AttachPlayerObjectToPlayer(objectplayer,objectid,attachplayer,OffsetX,OffsetY,OffsetZ,rX,rY,rZ)); | |
return 1; | |
} | |
ifCMD("/SetObjectMaterial") | |
{ | |
RetMsg("SetObjectMaterial(objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor=0)"); | |
GetInt(objectid); | |
GetInt(materialindex); | |
GetInt(modelid); | |
GetString(txdname); | |
GetString(texturename); | |
GetInt(materialcolor); | |
SendFormatMsg("SetObjectMaterial(%s); Return %i",params,SetObjectMaterial(objectid,materialindex,modelid,txdname,texturename,materialcolor)); | |
return 1; | |
} | |
ifCMD("/SetPlayerObjectMaterial") | |
{ | |
RetMsg("SetPlayerObjectMaterial(playerid, objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor=0)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetInt(materialindex); | |
GetInt(modelid); | |
GetString(txdname); | |
GetString(texturename); | |
GetInt(materialcolor); | |
SendFormatMsg("SetPlayerObjectMaterial(%s); Return %i",params,SetPlayerObjectMaterial(p1ayerid,objectid,materialindex,modelid,txdname,texturename,materialcolor)); | |
return 1; | |
} | |
ifCMD("/SetObjectMaterialText") | |
{ | |
RetMsg("SetObjectMaterialText(objectid, const text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = 'Arial', fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)"); | |
GetInt(objectid); | |
GetString(text); | |
GetInt(materialindex); | |
GetInt(materialsize); | |
GetString(fontface); | |
GetInt(fontsize); | |
GetInt(bold); | |
GetInt(fontcolor); | |
GetInt(backcolor); | |
GetInt(textalignment); | |
SendFormatMsg("SetObjectMaterialText(%s); Return %i",params,SetObjectMaterialText(objectid,text,materialindex,materialsize,fontface,fontsize,bold,fontcolor,backcolor,textalignment)); | |
return 1; | |
} | |
ifCMD("/SetPlayerObjectMaterialText") | |
{ | |
RetMsg("SetPlayerObjectMaterialText(playerid, objectid, const text[], materialindex = 0, materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = 'Arial', fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0)"); | |
GetInt(p1ayerid); | |
GetInt(objectid); | |
GetString(text); | |
GetInt(materialindex); | |
GetInt(materialsize); | |
GetString(fontface); | |
GetInt(fontsize); | |
GetInt(bold); | |
GetInt(fontcolor); | |
GetInt(backcolor); | |
GetInt(textalignment); | |
SendFormatMsg("SetPlayerObjectMaterialText(%s); Return %i",params,SetPlayerObjectMaterialText(p1ayerid,objectid,text,materialindex,materialsize,fontface,fontsize,bold,fontcolor,backcolor,textalignment)); | |
return 1; | |
} | |
ifCMD("/SetObjectsDefaultCameraCol") | |
{ | |
RetMsg("SetObjectsDefaultCameraCol(disable)"); | |
GetInt(disable); | |
SendFormatMsg("SetObjectsDefaultCameraCol(%s); Return %i",params,SetObjectsDefaultCameraCol(disable)); | |
return 1; | |
} | |
ifCMD("/a_objects.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"CreateObject\nAttachObjectToVehicle\nAttachObjectToObject\nAttachObjectToPlayer\nSetObjectPos\nGetObjectPos\nSetObjectRot\nGetObjectRot\nGetObjectModel\nSetObjectNoCameraCol\nIsValidObject\nDestroyObject\nMoveObject\nStopObject\nIsObjectMoving\nEditObject\nEditPlayerObject\nSelectObject\nCancelEdit\nCreatePlayerObject\nAttachPlayerObjectToVehicle\nSetPlayerObjectPos\nGetPlayerObjectPos\nSetPlayerObjectRot\nGetPlayerObjectRot\nGetPlayerObjectModel\nSetPlayerObjectNoCameraCol\nIsValidP"); | |
strcat(CmdList,"layerObject\nDestroyPlayerObject\nMovePlayerObject\nStopPlayerObject\nIsPlayerObjectMoving\nAttachPlayerObjectToPlayer\nSetObjectMaterial\nSetPlayerObjectMaterial\nSetObjectMaterialText\nSetPlayerObjectMaterialText\nSetObjectsDefaultCameraCol"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_objects.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/a_objects.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_objects_included\nOBJECT_MATERIAL_SIZE_32x32 10\nOBJECT_MATERIAL_SIZE_64x32 20\nOBJECT_MATERIAL_SIZE_64x64 30\nOBJECT_MATERIAL_SIZE_128x32 40\nOBJECT_MATERIAL_SIZE_128x64 50\nOBJECT_MATERIAL_SIZE_128x128 60\nOBJECT_MATERIAL_SIZE_256x32 70\nOBJECT_MATERIAL_SIZE_256x64 80\nOBJECT_MATERIAL_SIZE_256x128 90\nOBJECT_MATERIAL_SIZE_256x256 100\nOBJECT_MATERIAL_SIZE_512x64 110\nOBJECT_MATERIAL_SIZE_512x128 120\nOBJECT_MATERIAL_SIZE_512x256 130\nOBJECT_MATERIAL_SIZE_512x512 140\nOBJEC"); | |
strcat(DefList,"T_MATERIAL_TEXT_ALIGN_LEFT 0\nOBJECT_MATERIAL_TEXT_ALIGN_CENTER 1\nOBJECT_MATERIAL_TEXT_ALIGN_RIGHT 2"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_objects.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/print") | |
{ | |
RetMsg("print(const string[])"); | |
GetString(string); | |
SendFormatMsg("print(%s); Return %i",params,print(string)); | |
return 1; | |
} | |
//printf (Funcion [{Float,_}:...] no soportada) | |
//format (Funcion [{Float,_}:...] no soportada) | |
ifCMD("/SendClientMessage") | |
{ | |
RetMsg("SendClientMessage(playerid, color, const message[])"); | |
GetInt(p1ayerid); | |
GetInt(color); | |
GetString(message); | |
SendFormatMsg("SendClientMessage(%s); Return %i",params,SendClientMessage(p1ayerid,color,message)); | |
return 1; | |
} | |
ifCMD("/SendClientMessageToAll") | |
{ | |
RetMsg("SendClientMessageToAll(color, const message[])"); | |
GetInt(color); | |
GetString(message); | |
SendFormatMsg("SendClientMessageToAll(%s); Return %i",params,SendClientMessageToAll(color,message)); | |
return 1; | |
} | |
ifCMD("/SendPlayerMessageToPlayer") | |
{ | |
RetMsg("SendPlayerMessageToPlayer(playerid, senderid, const message[])"); | |
GetInt(p1ayerid); | |
GetInt(senderid); | |
GetString(message); | |
SendFormatMsg("SendPlayerMessageToPlayer(%s); Return %i",params,SendPlayerMessageToPlayer(p1ayerid,senderid,message)); | |
return 1; | |
} | |
ifCMD("/SendPlayerMessageToAll") | |
{ | |
RetMsg("SendPlayerMessageToAll(senderid, const message[])"); | |
GetInt(senderid); | |
GetString(message); | |
SendFormatMsg("SendPlayerMessageToAll(%s); Return %i",params,SendPlayerMessageToAll(senderid,message)); | |
return 1; | |
} | |
ifCMD("/SendDeathMessage") | |
{ | |
RetMsg("SendDeathMessage(killer, killee, weapon)"); | |
GetInt(killer); | |
GetInt(killee); | |
GetInt(weapon); | |
SendFormatMsg("SendDeathMessage(%s); Return %i",params,SendDeathMessage(killer,killee,weapon)); | |
return 1; | |
} | |
ifCMD("/SendDeathMessageToPlayer") | |
{ | |
RetMsg("SendDeathMessageToPlayer(playerid, killer, killee, weapon)"); | |
GetInt(p1ayerid); | |
GetInt(killer); | |
GetInt(killee); | |
GetInt(weapon); | |
SendFormatMsg("SendDeathMessageToPlayer(%s); Return %i",params,SendDeathMessageToPlayer(p1ayerid,killer,killee,weapon)); | |
return 1; | |
} | |
ifCMD("/GameTextForAll") | |
{ | |
RetMsg("GameTextForAll(const string[],time,style)"); | |
GetString(string); | |
GetInt(time); | |
GetInt(style); | |
SendFormatMsg("GameTextForAll(%s); Return %i",params,GameTextForAll(string,time,style)); | |
return 1; | |
} | |
ifCMD("/GameTextForPlayer") | |
{ | |
RetMsg("GameTextForPlayer(playerid,const string[],time,style)"); | |
GetInt(p1ayerid); | |
GetString(string); | |
GetInt(time); | |
GetInt(style); | |
SendFormatMsg("GameTextForPlayer(%s); Return %i",params,GameTextForPlayer(p1ayerid,string,time,style)); | |
return 1; | |
} | |
ifCMD("/SetTimer") | |
{ | |
RetMsg("SetTimer(const funcname[], interval, repeating)"); | |
GetString(funcname); | |
GetInt(interval); | |
GetInt(repeating); | |
SendFormatMsg("SetTimer(%s); Return %i",params,SetTimer(funcname,interval,repeating)); | |
return 1; | |
} | |
//SetTimerEx (Funcion [{Float,_}:...] no soportada) | |
ifCMD("/KillTimer") | |
{ | |
RetMsg("KillTimer(timerid)"); | |
GetInt(timerid); | |
SendFormatMsg("KillTimer(%s); Return %i",params,KillTimer(timerid)); | |
return 1; | |
} | |
ifCMD("/GetTickCount") | |
{ | |
GetTickCount(); | |
return 1; | |
} | |
ifCMD("/GetMaxPlayers") | |
{ | |
GetMaxPlayers(); | |
return 1; | |
} | |
//CallRemoteFunction (Funcion [{Float,_}:...] no soportada) | |
//CallLocalFunction (Funcion [{Float,_}:...] no soportada) | |
ifCMD("/VectorSize") | |
{ | |
RetMsg("VectorSize(Float:x, Float:y, Float:z)"); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("VectorSize(%s); Return %f",params,VectorSize(x,y,z)); | |
return 1; | |
} | |
ifCMD("/asin") | |
{ | |
RetMsg("asin(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("asin(%s); Return %f",params,asin(value)); | |
return 1; | |
} | |
ifCMD("/acos") | |
{ | |
RetMsg("acos(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("acos(%s); Return %f",params,acos(value)); | |
return 1; | |
} | |
ifCMD("/atan") | |
{ | |
RetMsg("atan(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("atan(%s); Return %f",params,atan(value)); | |
return 1; | |
} | |
ifCMD("/atan2") | |
{ | |
RetMsg("atan2(Float:x, Float:y)"); | |
GetFloat(x); | |
GetFloat(y); | |
SendFormatMsg("atan2(%s); Return %f",params,atan2(x,y)); | |
return 1; | |
} | |
ifCMD("/GetPlayerPoolSize") | |
{ | |
GetPlayerPoolSize(); | |
return 1; | |
} | |
ifCMD("/GetVehiclePoolSize") | |
{ | |
GetVehiclePoolSize(); | |
return 1; | |
} | |
ifCMD("/GetActorPoolSize") | |
{ | |
GetActorPoolSize(); | |
return 1; | |
} | |
ifCMD("/SetGameModeText") | |
{ | |
RetMsg("SetGameModeText(const string[])"); | |
GetString(string); | |
SendFormatMsg("SetGameModeText(%s); Return %i",params,SetGameModeText(string)); | |
return 1; | |
} | |
ifCMD("/SetTeamCount") | |
{ | |
RetMsg("SetTeamCount(count)"); | |
GetInt(count); | |
SendFormatMsg("SetTeamCount(%s); Return %i",params,SetTeamCount(count)); | |
return 1; | |
} | |
ifCMD("/AddPlayerClass") | |
{ | |
RetMsg("AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)"); | |
GetInt(modelid); | |
GetFloat(spawn_x); | |
GetFloat(spawn_y); | |
GetFloat(spawn_z); | |
GetFloat(z_angle); | |
GetInt(weapon1); | |
GetInt(weapon1_ammo); | |
GetInt(weapon2); | |
GetInt(weapon2_ammo); | |
GetInt(weapon3); | |
GetInt(weapon3_ammo); | |
SendFormatMsg("AddPlayerClass(%s); Return %i",params,AddPlayerClass(modelid,spawn_x,spawn_y,spawn_z,z_angle,weapon1,weapon1_ammo,weapon2,weapon2_ammo,weapon3,weapon3_ammo)); | |
return 1; | |
} | |
ifCMD("/AddPlayerClassEx") | |
{ | |
RetMsg("AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)"); | |
GetInt(teamid); | |
GetInt(modelid); | |
GetFloat(spawn_x); | |
GetFloat(spawn_y); | |
GetFloat(spawn_z); | |
GetFloat(z_angle); | |
GetInt(weapon1); | |
GetInt(weapon1_ammo); | |
GetInt(weapon2); | |
GetInt(weapon2_ammo); | |
GetInt(weapon3); | |
GetInt(weapon3_ammo); | |
SendFormatMsg("AddPlayerClassEx(%s); Return %i",params,AddPlayerClassEx(teamid,modelid,spawn_x,spawn_y,spawn_z,z_angle,weapon1,weapon1_ammo,weapon2,weapon2_ammo,weapon3,weapon3_ammo)); | |
return 1; | |
} | |
ifCMD("/AddStaticVehicle") | |
{ | |
RetMsg("AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2)"); | |
GetInt(modelid); | |
GetFloat(spawn_x); | |
GetFloat(spawn_y); | |
GetFloat(spawn_z); | |
GetFloat(z_angle); | |
GetInt(color1); | |
GetInt(color2); | |
SendFormatMsg("AddStaticVehicle(%s); Return %i",params,AddStaticVehicle(modelid,spawn_x,spawn_y,spawn_z,z_angle,color1,color2)); | |
return 1; | |
} | |
ifCMD("/AddStaticVehicleEx") | |
{ | |
RetMsg("AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay, addsiren=0)"); | |
GetInt(modelid); | |
GetFloat(spawn_x); | |
GetFloat(spawn_y); | |
GetFloat(spawn_z); | |
GetFloat(z_angle); | |
GetInt(color1); | |
GetInt(color2); | |
GetInt(respawn_delay); | |
GetInt(addsiren); | |
SendFormatMsg("AddStaticVehicleEx(%s); Return %i",params,AddStaticVehicleEx(modelid,spawn_x,spawn_y,spawn_z,z_angle,color1,color2,respawn_delay,addsiren)); | |
return 1; | |
} | |
ifCMD("/AddStaticPickup") | |
{ | |
RetMsg("AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0)"); | |
GetInt(model); | |
GetInt(type); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetInt(virtualworld); | |
SendFormatMsg("AddStaticPickup(%s); Return %i",params,AddStaticPickup(model,type,X,Y,Z,virtualworld)); | |
return 1; | |
} | |
ifCMD("/CreatePickup") | |
{ | |
RetMsg("CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0)"); | |
GetInt(model); | |
GetInt(type); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetInt(virtualworld); | |
SendFormatMsg("CreatePickup(%s); Return %i",params,CreatePickup(model,type,X,Y,Z,virtualworld)); | |
return 1; | |
} | |
ifCMD("/DestroyPickup") | |
{ | |
RetMsg("DestroyPickup(pickup)"); | |
GetInt(pickup); | |
SendFormatMsg("DestroyPickup(%s); Return %i",params,DestroyPickup(pickup)); | |
return 1; | |
} | |
ifCMD("/ShowNameTags") | |
{ | |
RetMsg("ShowNameTags(show)"); | |
GetInt(show); | |
SendFormatMsg("ShowNameTags(%s); Return %i",params,ShowNameTags(show)); | |
return 1; | |
} | |
ifCMD("/ShowPlayerMarkers") | |
{ | |
RetMsg("ShowPlayerMarkers(mode)"); | |
GetInt(mode); | |
SendFormatMsg("ShowPlayerMarkers(%s); Return %i",params,ShowPlayerMarkers(mode)); | |
return 1; | |
} | |
ifCMD("/GameModeExit") | |
{ | |
GameModeExit(); | |
return 1; | |
} | |
ifCMD("/SetWorldTime") | |
{ | |
RetMsg("SetWorldTime(hour)"); | |
GetInt(hour); | |
SendFormatMsg("SetWorldTime(%s); Return %i",params,SetWorldTime(hour)); | |
return 1; | |
} | |
ifCMD("/GetWeaponName") | |
{ | |
RetMsg("GetWeaponName(weaponid, weapon[], len)"); | |
GetInt(weaponid); | |
SetString(weapon); | |
GetInt(len); | |
SendFormatMsg("GetWeaponName(%s), weapon(%s); Return %i",params,weapon,GetWeaponName(weaponid,weapon,len)); | |
return 1; | |
} | |
ifCMD("/EnableTirePopping") | |
{ | |
RetMsg("EnableTirePopping(enable)"); | |
GetInt(enable); | |
SendFormatMsg("EnableTirePopping(%s); Return %i",params,EnableTirePopping(enable)); | |
return 1; | |
} | |
ifCMD("/EnableVehicleFriendlyFire") | |
{ | |
EnableVehicleFriendlyFire(); | |
return 1; | |
} | |
ifCMD("/AllowInteriorWeapons") | |
{ | |
RetMsg("AllowInteriorWeapons(allow)"); | |
GetInt(allow); | |
SendFormatMsg("AllowInteriorWeapons(%s); Return %i",params,AllowInteriorWeapons(allow)); | |
return 1; | |
} | |
ifCMD("/SetWeather") | |
{ | |
RetMsg("SetWeather(weatherid)"); | |
GetInt(weatherid); | |
SendFormatMsg("SetWeather(%s); Return %i",params,SetWeather(weatherid)); | |
return 1; | |
} | |
ifCMD("/SetGravity") | |
{ | |
RetMsg("SetGravity(Float:gravity)"); | |
GetFloat(gravity); | |
SendFormatMsg("SetGravity(%s); Return %i",params,SetGravity(gravity)); | |
return 1; | |
} | |
ifCMD("/AllowAdminTeleport") | |
{ | |
RetMsg("AllowAdminTeleport(allow)"); | |
GetInt(allow); | |
SendFormatMsg("AllowAdminTeleport(%s); Return %i",params,AllowAdminTeleport(allow)); | |
return 1; | |
} | |
ifCMD("/SetDeathDropAmount") | |
{ | |
RetMsg("SetDeathDropAmount(amount)"); | |
GetInt(amount); | |
SendFormatMsg("SetDeathDropAmount(%s); Return %i",params,SetDeathDropAmount(amount)); | |
return 1; | |
} | |
ifCMD("/CreateExplosion") | |
{ | |
RetMsg("CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:Radius)"); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetInt(type); | |
GetFloat(Radius); | |
SendFormatMsg("CreateExplosion(%s); Return %i",params,CreateExplosion(X,Y,Z,type,Radius)); | |
return 1; | |
} | |
ifCMD("/EnableZoneNames") | |
{ | |
RetMsg("EnableZoneNames(enable)"); | |
GetInt(enable); | |
SendFormatMsg("EnableZoneNames(%s); Return %i",params,EnableZoneNames(enable)); | |
return 1; | |
} | |
ifCMD("/UsePlayerPedAnims") | |
{ | |
UsePlayerPedAnims(); | |
return 1; | |
} | |
ifCMD("/DisableInteriorEnterExits") | |
{ | |
DisableInteriorEnterExits(); | |
return 1; | |
} | |
ifCMD("/SetNameTagDrawDistance") | |
{ | |
RetMsg("SetNameTagDrawDistance(Float:distance)"); | |
GetFloat(distance); | |
SendFormatMsg("SetNameTagDrawDistance(%s); Return %i",params,SetNameTagDrawDistance(distance)); | |
return 1; | |
} | |
ifCMD("/DisableNameTagLOS") | |
{ | |
DisableNameTagLOS(); | |
return 1; | |
} | |
ifCMD("/LimitGlobalChatRadius") | |
{ | |
RetMsg("LimitGlobalChatRadius(Float:chat_radius)"); | |
GetFloat(chat_radius); | |
SendFormatMsg("LimitGlobalChatRadius(%s); Return %i",params,LimitGlobalChatRadius(chat_radius)); | |
return 1; | |
} | |
ifCMD("/LimitPlayerMarkerRadius") | |
{ | |
RetMsg("LimitPlayerMarkerRadius(Float:marker_radius)"); | |
GetFloat(marker_radius); | |
SendFormatMsg("LimitPlayerMarkerRadius(%s); Return %i",params,LimitPlayerMarkerRadius(marker_radius)); | |
return 1; | |
} | |
ifCMD("/ConnectNPC") | |
{ | |
RetMsg("ConnectNPC(const name[], const script[])"); | |
GetString(name); | |
GetString(script); | |
SendFormatMsg("ConnectNPC(%s); Return %i",params,ConnectNPC(name,script)); | |
return 1; | |
} | |
ifCMD("/IsPlayerNPC") | |
{ | |
RetMsg("IsPlayerNPC(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerNPC(%s); Return %i",params,IsPlayerNPC(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/IsPlayerAdmin") | |
{ | |
RetMsg("IsPlayerAdmin(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("IsPlayerAdmin(%s); Return %i",params,IsPlayerAdmin(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/Kick") | |
{ | |
RetMsg("Kick(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("Kick(%s); Return %i",params,Kick(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/Ban") | |
{ | |
RetMsg("Ban(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("Ban(%s); Return %i",params,Ban(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/BanEx") | |
{ | |
RetMsg("BanEx(playerid, const reason[])"); | |
GetInt(p1ayerid); | |
GetString(reason); | |
SendFormatMsg("BanEx(%s); Return %i",params,BanEx(p1ayerid,reason)); | |
return 1; | |
} | |
ifCMD("/SendRconCommand") | |
{ | |
RetMsg("SendRconCommand(const command[])"); | |
GetString(command); | |
SendFormatMsg("SendRconCommand(%s); Return %i",params,SendRconCommand(command)); | |
return 1; | |
} | |
ifCMD("/GetServerVarAsString") | |
{ | |
RetMsg("GetServerVarAsString(const varname[], buffer[], len)"); | |
GetString(varname); | |
SetString(buffer); | |
GetInt(len); | |
SendFormatMsg("GetServerVarAsString(%s), buffer(%s); Return %i",params,buffer,GetServerVarAsString(varname,buffer,len)); | |
return 1; | |
} | |
ifCMD("/GetServerVarAsInt") | |
{ | |
RetMsg("GetServerVarAsInt(const varname[])"); | |
GetString(varname); | |
SendFormatMsg("GetServerVarAsInt(%s); Return %i",params,GetServerVarAsInt(varname)); | |
return 1; | |
} | |
ifCMD("/GetServerVarAsBool") | |
{ | |
RetMsg("GetServerVarAsBool(const varname[])"); | |
GetString(varname); | |
SendFormatMsg("GetServerVarAsBool(%s); Return %i",params,GetServerVarAsBool(varname)); | |
return 1; | |
} | |
ifCMD("/GetPlayerNetworkStats") | |
{ | |
RetMsg("GetPlayerNetworkStats(playerid, retstr[], retstr_size)"); | |
GetInt(p1ayerid); | |
SetString(retstr); | |
GetInt(retstr_size); | |
SendFormatMsg("GetPlayerNetworkStats(%s), retstr(%s); Return %i",params,retstr,GetPlayerNetworkStats(p1ayerid,retstr,retstr_size)); | |
return 1; | |
} | |
ifCMD("/GetNetworkStats") | |
{ | |
RetMsg("GetNetworkStats(retstr[], retstr_size)"); | |
SetString(retstr); | |
GetInt(retstr_size); | |
SendFormatMsg("GetNetworkStats(%s), retstr(%s); Return %i",params,retstr,GetNetworkStats(retstr,retstr_size)); | |
return 1; | |
} | |
ifCMD("/GetPlayerVersion") | |
{ | |
RetMsg("GetPlayerVersion(playerid, version[], len)"); | |
GetInt(p1ayerid); | |
SetString(version); | |
GetInt(len); | |
SendFormatMsg("GetPlayerVersion(%s), version(%s); Return %i",params,version,GetPlayerVersion(p1ayerid,version,len)); | |
return 1; | |
} | |
ifCMD("/BlockIpAddress") | |
{ | |
RetMsg("BlockIpAddress(const ip_address[], timems)"); | |
GetString(ip_address); | |
GetInt(timems); | |
SendFormatMsg("BlockIpAddress(%s); Return %i",params,BlockIpAddress(ip_address,timems)); | |
return 1; | |
} | |
ifCMD("/UnBlockIpAddress") | |
{ | |
RetMsg("UnBlockIpAddress(const ip_address[])"); | |
GetString(ip_address); | |
SendFormatMsg("UnBlockIpAddress(%s); Return %i",params,UnBlockIpAddress(ip_address)); | |
return 1; | |
} | |
ifCMD("/GetServerTickRate") | |
{ | |
GetServerTickRate(); | |
return 1; | |
} | |
ifCMD("/NetStats_GetConnectedTime") | |
{ | |
RetMsg("NetStats_GetConnectedTime(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_GetConnectedTime(%s); Return %i",params,NetStats_GetConnectedTime(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_MessagesReceived") | |
{ | |
RetMsg("NetStats_MessagesReceived(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_MessagesReceived(%s); Return %i",params,NetStats_MessagesReceived(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_BytesReceived") | |
{ | |
RetMsg("NetStats_BytesReceived(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_BytesReceived(%s); Return %i",params,NetStats_BytesReceived(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_MessagesSent") | |
{ | |
RetMsg("NetStats_MessagesSent(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_MessagesSent(%s); Return %i",params,NetStats_MessagesSent(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_BytesSent") | |
{ | |
RetMsg("NetStats_BytesSent(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_BytesSent(%s); Return %i",params,NetStats_BytesSent(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_MessagesRecvPerSecond") | |
{ | |
RetMsg("NetStats_MessagesRecvPerSecond(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_MessagesRecvPerSecond(%s); Return %i",params,NetStats_MessagesRecvPerSecond(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_PacketLossPercent") | |
{ | |
RetMsg("NetStats_PacketLossPercent(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_PacketLossPercent(%s); Return %f",params,NetStats_PacketLossPercent(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_ConnectionStatus") | |
{ | |
RetMsg("NetStats_ConnectionStatus(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("NetStats_ConnectionStatus(%s); Return %i",params,NetStats_ConnectionStatus(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/NetStats_GetIpPort") | |
{ | |
RetMsg("NetStats_GetIpPort(playerid, ip_port[], ip_port_len)"); | |
GetInt(p1ayerid); | |
SetString(ip_port); | |
GetInt(ip_port_len); | |
SendFormatMsg("NetStats_GetIpPort(%s), ip_port(%s); Return %i",params,ip_port,NetStats_GetIpPort(p1ayerid,ip_port,ip_port_len)); | |
return 1; | |
} | |
ifCMD("/CreateMenu") | |
{ | |
RetMsg("CreateMenu(const title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0)"); | |
GetString(title); | |
GetInt(columns); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(col1width); | |
GetFloat(col2width); | |
SendFormatMsg("CreateMenu(%s); Return %i",params,_:CreateMenu(title,columns,x,y,col1width,col2width)); | |
return 1; | |
} | |
ifCMD("/DestroyMenu") | |
{ | |
RetMsg("DestroyMenu(Menu:menuid)"); | |
GetMenu(menuid); | |
SendFormatMsg("DestroyMenu(%s); Return %i",params,DestroyMenu(menuid)); | |
return 1; | |
} | |
ifCMD("/AddMenuItem") | |
{ | |
RetMsg("AddMenuItem(Menu:menuid, column, const menutext[])"); | |
GetMenu(menuid); | |
GetInt(column); | |
GetString(menutext); | |
SendFormatMsg("AddMenuItem(%s); Return %i",params,AddMenuItem(menuid,column,menutext)); | |
return 1; | |
} | |
ifCMD("/SetMenuColumnHeader") | |
{ | |
RetMsg("SetMenuColumnHeader(Menu:menuid, column, const columnheader[])"); | |
GetMenu(menuid); | |
GetInt(column); | |
GetString(columnheader); | |
SendFormatMsg("SetMenuColumnHeader(%s); Return %i",params,SetMenuColumnHeader(menuid,column,columnheader)); | |
return 1; | |
} | |
ifCMD("/ShowMenuForPlayer") | |
{ | |
RetMsg("ShowMenuForPlayer(Menu:menuid, playerid)"); | |
GetMenu(menuid); | |
GetInt(p1ayerid); | |
SendFormatMsg("ShowMenuForPlayer(%s); Return %i",params,ShowMenuForPlayer(menuid,p1ayerid)); | |
return 1; | |
} | |
ifCMD("/HideMenuForPlayer") | |
{ | |
RetMsg("HideMenuForPlayer(Menu:menuid, playerid)"); | |
GetMenu(menuid); | |
GetInt(p1ayerid); | |
SendFormatMsg("HideMenuForPlayer(%s); Return %i",params,HideMenuForPlayer(menuid,p1ayerid)); | |
return 1; | |
} | |
ifCMD("/IsValidMenu") | |
{ | |
RetMsg("IsValidMenu(Menu:menuid)"); | |
GetMenu(menuid); | |
SendFormatMsg("IsValidMenu(%s); Return %i",params,IsValidMenu(menuid)); | |
return 1; | |
} | |
ifCMD("/DisableMenu") | |
{ | |
RetMsg("DisableMenu(Menu:menuid)"); | |
GetMenu(menuid); | |
SendFormatMsg("DisableMenu(%s); Return %i",params,DisableMenu(menuid)); | |
return 1; | |
} | |
ifCMD("/DisableMenuRow") | |
{ | |
RetMsg("DisableMenuRow(Menu:menuid, row)"); | |
GetMenu(menuid); | |
GetInt(row); | |
SendFormatMsg("DisableMenuRow(%s); Return %i",params,DisableMenuRow(menuid,row)); | |
return 1; | |
} | |
ifCMD("/GetPlayerMenu") | |
{ | |
RetMsg("GetPlayerMenu(playerid)"); | |
GetInt(p1ayerid); | |
SendFormatMsg("GetPlayerMenu(%s); Return %i",params,_:GetPlayerMenu(p1ayerid)); | |
return 1; | |
} | |
ifCMD("/TextDrawCreate") | |
{ | |
RetMsg("TextDrawCreate(Float:x, Float:y, const text[])"); | |
GetFloat(x); | |
GetFloat(y); | |
GetString(text); | |
SendFormatMsg("TextDrawCreate(%s); Return %i",params,_:TextDrawCreate(x,y,text)); | |
return 1; | |
} | |
ifCMD("/TextDrawDestroy") | |
{ | |
RetMsg("TextDrawDestroy(Text:text)"); | |
GetText(text); | |
SendFormatMsg("TextDrawDestroy(%s); Return %i",params,TextDrawDestroy(text)); | |
return 1; | |
} | |
ifCMD("/TextDrawLetterSize") | |
{ | |
RetMsg("TextDrawLetterSize(Text:text, Float:x, Float:y)"); | |
GetText(text); | |
GetFloat(x); | |
GetFloat(y); | |
SendFormatMsg("TextDrawLetterSize(%s); Return %i",params,TextDrawLetterSize(text,x,y)); | |
return 1; | |
} | |
ifCMD("/TextDrawTextSize") | |
{ | |
RetMsg("TextDrawTextSize(Text:text, Float:x, Float:y)"); | |
GetText(text); | |
GetFloat(x); | |
GetFloat(y); | |
SendFormatMsg("TextDrawTextSize(%s); Return %i",params,TextDrawTextSize(text,x,y)); | |
return 1; | |
} | |
ifCMD("/TextDrawAlignment") | |
{ | |
RetMsg("TextDrawAlignment(Text:text, alignment)"); | |
GetText(text); | |
GetInt(alignment); | |
SendFormatMsg("TextDrawAlignment(%s); Return %i",params,TextDrawAlignment(text,alignment)); | |
return 1; | |
} | |
ifCMD("/TextDrawColor") | |
{ | |
RetMsg("TextDrawColor(Text:text, color)"); | |
GetText(text); | |
GetInt(color); | |
SendFormatMsg("TextDrawColor(%s); Return %i",params,TextDrawColor(text,color)); | |
return 1; | |
} | |
ifCMD("/TextDrawUseBox") | |
{ | |
RetMsg("TextDrawUseBox(Text:text, use)"); | |
GetText(text); | |
GetInt(use); | |
SendFormatMsg("TextDrawUseBox(%s); Return %i",params,TextDrawUseBox(text,use)); | |
return 1; | |
} | |
ifCMD("/TextDrawBoxColor") | |
{ | |
RetMsg("TextDrawBoxColor(Text:text, color)"); | |
GetText(text); | |
GetInt(color); | |
SendFormatMsg("TextDrawBoxColor(%s); Return %i",params,TextDrawBoxColor(text,color)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetShadow") | |
{ | |
RetMsg("TextDrawSetShadow(Text:text, size)"); | |
GetText(text); | |
GetInt(size); | |
SendFormatMsg("TextDrawSetShadow(%s); Return %i",params,TextDrawSetShadow(text,size)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetOutline") | |
{ | |
RetMsg("TextDrawSetOutline(Text:text, size)"); | |
GetText(text); | |
GetInt(size); | |
SendFormatMsg("TextDrawSetOutline(%s); Return %i",params,TextDrawSetOutline(text,size)); | |
return 1; | |
} | |
ifCMD("/TextDrawBackgroundColor") | |
{ | |
RetMsg("TextDrawBackgroundColor(Text:text, color)"); | |
GetText(text); | |
GetInt(color); | |
SendFormatMsg("TextDrawBackgroundColor(%s); Return %i",params,TextDrawBackgroundColor(text,color)); | |
return 1; | |
} | |
ifCMD("/TextDrawFont") | |
{ | |
RetMsg("TextDrawFont(Text:text, font)"); | |
GetText(text); | |
GetInt(font); | |
SendFormatMsg("TextDrawFont(%s); Return %i",params,TextDrawFont(text,font)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetProportional") | |
{ | |
RetMsg("TextDrawSetProportional(Text:text, set)"); | |
GetText(text); | |
GetInt(set); | |
SendFormatMsg("TextDrawSetProportional(%s); Return %i",params,TextDrawSetProportional(text,set)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetSelectable") | |
{ | |
RetMsg("TextDrawSetSelectable(Text:text, set)"); | |
GetText(text); | |
GetInt(set); | |
SendFormatMsg("TextDrawSetSelectable(%s); Return %i",params,TextDrawSetSelectable(text,set)); | |
return 1; | |
} | |
ifCMD("/TextDrawShowForPlayer") | |
{ | |
RetMsg("TextDrawShowForPlayer(playerid, Text:text)"); | |
GetInt(p1ayerid); | |
GetText(text); | |
SendFormatMsg("TextDrawShowForPlayer(%s); Return %i",params,TextDrawShowForPlayer(p1ayerid,text)); | |
return 1; | |
} | |
ifCMD("/TextDrawHideForPlayer") | |
{ | |
RetMsg("TextDrawHideForPlayer(playerid, Text:text)"); | |
GetInt(p1ayerid); | |
GetText(text); | |
SendFormatMsg("TextDrawHideForPlayer(%s); Return %i",params,TextDrawHideForPlayer(p1ayerid,text)); | |
return 1; | |
} | |
ifCMD("/TextDrawShowForAll") | |
{ | |
RetMsg("TextDrawShowForAll(Text:text)"); | |
GetText(text); | |
SendFormatMsg("TextDrawShowForAll(%s); Return %i",params,TextDrawShowForAll(text)); | |
return 1; | |
} | |
ifCMD("/TextDrawHideForAll") | |
{ | |
RetMsg("TextDrawHideForAll(Text:text)"); | |
GetText(text); | |
SendFormatMsg("TextDrawHideForAll(%s); Return %i",params,TextDrawHideForAll(text)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetString") | |
{ | |
RetMsg("TextDrawSetString(Text:text, const string[])"); | |
GetText(text); | |
GetString(string); | |
SendFormatMsg("TextDrawSetString(%s); Return %i",params,TextDrawSetString(text,string)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetPreviewModel") | |
{ | |
RetMsg("TextDrawSetPreviewModel(Text:text, modelindex)"); | |
GetText(text); | |
GetInt(modelindex); | |
SendFormatMsg("TextDrawSetPreviewModel(%s); Return %i",params,TextDrawSetPreviewModel(text,modelindex)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetPreviewRot") | |
{ | |
RetMsg("TextDrawSetPreviewRot(Text:text, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fZoom = 1.0)"); | |
GetText(text); | |
GetFloat(fRotX); | |
GetFloat(fRotY); | |
GetFloat(fRotZ); | |
GetFloat(fZoom); | |
SendFormatMsg("TextDrawSetPreviewRot(%s); Return %i",params,TextDrawSetPreviewRot(text,fRotX,fRotY,fRotZ,fZoom)); | |
return 1; | |
} | |
ifCMD("/TextDrawSetPreviewVehCol") | |
{ | |
RetMsg("TextDrawSetPreviewVehCol(Text:text, color1, color2)"); | |
GetText(text); | |
GetInt(color1); | |
GetInt(color2); | |
SendFormatMsg("TextDrawSetPreviewVehCol(%s); Return %i",params,TextDrawSetPreviewVehCol(text,color1,color2)); | |
return 1; | |
} | |
ifCMD("/GangZoneCreate") | |
{ | |
RetMsg("GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy)"); | |
GetFloat(minx); | |
GetFloat(miny); | |
GetFloat(maxx); | |
GetFloat(maxy); | |
SendFormatMsg("GangZoneCreate(%s); Return %i",params,GangZoneCreate(minx,miny,maxx,maxy)); | |
return 1; | |
} | |
ifCMD("/GangZoneDestroy") | |
{ | |
RetMsg("GangZoneDestroy(zone)"); | |
GetInt(zone); | |
SendFormatMsg("GangZoneDestroy(%s); Return %i",params,GangZoneDestroy(zone)); | |
return 1; | |
} | |
ifCMD("/GangZoneShowForPlayer") | |
{ | |
RetMsg("GangZoneShowForPlayer(playerid, zone, color)"); | |
GetInt(p1ayerid); | |
GetInt(zone); | |
GetInt(color); | |
SendFormatMsg("GangZoneShowForPlayer(%s); Return %i",params,GangZoneShowForPlayer(p1ayerid,zone,color)); | |
return 1; | |
} | |
ifCMD("/GangZoneShowForAll") | |
{ | |
RetMsg("GangZoneShowForAll(zone, color)"); | |
GetInt(zone); | |
GetInt(color); | |
SendFormatMsg("GangZoneShowForAll(%s); Return %i",params,GangZoneShowForAll(zone,color)); | |
return 1; | |
} | |
ifCMD("/GangZoneHideForPlayer") | |
{ | |
RetMsg("GangZoneHideForPlayer(playerid, zone)"); | |
GetInt(p1ayerid); | |
GetInt(zone); | |
SendFormatMsg("GangZoneHideForPlayer(%s); Return %i",params,GangZoneHideForPlayer(p1ayerid,zone)); | |
return 1; | |
} | |
ifCMD("/GangZoneHideForAll") | |
{ | |
RetMsg("GangZoneHideForAll(zone)"); | |
GetInt(zone); | |
SendFormatMsg("GangZoneHideForAll(%s); Return %i",params,GangZoneHideForAll(zone)); | |
return 1; | |
} | |
ifCMD("/GangZoneFlashForPlayer") | |
{ | |
RetMsg("GangZoneFlashForPlayer(playerid, zone, flashcolor)"); | |
GetInt(p1ayerid); | |
GetInt(zone); | |
GetInt(flashcolor); | |
SendFormatMsg("GangZoneFlashForPlayer(%s); Return %i",params,GangZoneFlashForPlayer(p1ayerid,zone,flashcolor)); | |
return 1; | |
} | |
ifCMD("/GangZoneFlashForAll") | |
{ | |
RetMsg("GangZoneFlashForAll(zone, flashcolor)"); | |
GetInt(zone); | |
GetInt(flashcolor); | |
SendFormatMsg("GangZoneFlashForAll(%s); Return %i",params,GangZoneFlashForAll(zone,flashcolor)); | |
return 1; | |
} | |
ifCMD("/GangZoneStopFlashForPlayer") | |
{ | |
RetMsg("GangZoneStopFlashForPlayer(playerid, zone)"); | |
GetInt(p1ayerid); | |
GetInt(zone); | |
SendFormatMsg("GangZoneStopFlashForPlayer(%s); Return %i",params,GangZoneStopFlashForPlayer(p1ayerid,zone)); | |
return 1; | |
} | |
ifCMD("/GangZoneStopFlashForAll") | |
{ | |
RetMsg("GangZoneStopFlashForAll(zone)"); | |
GetInt(zone); | |
SendFormatMsg("GangZoneStopFlashForAll(%s); Return %i",params,GangZoneStopFlashForAll(zone)); | |
return 1; | |
} | |
ifCMD("/Create3DTextLabel") | |
{ | |
RetMsg("Create3DTextLabel(const text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS=0)"); | |
GetString(text); | |
GetInt(color); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(DrawDistance); | |
GetInt(virtualworld); | |
GetInt(testLOS); | |
SendFormatMsg("Create3DTextLabel(%s); Return %i",params,_:Create3DTextLabel(text,color,X,Y,Z,DrawDistance,virtualworld,testLOS)); | |
return 1; | |
} | |
ifCMD("/Delete3DTextLabel") | |
{ | |
RetMsg("Delete3DTextLabel(Text3D:id)"); | |
GetText3D(id); | |
SendFormatMsg("Delete3DTextLabel(%s); Return %i",params,Delete3DTextLabel(id)); | |
return 1; | |
} | |
ifCMD("/Attach3DTextLabelToPlayer") | |
{ | |
RetMsg("Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)"); | |
GetText3D(id); | |
GetInt(p1ayerid); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
SendFormatMsg("Attach3DTextLabelToPlayer(%s); Return %i",params,Attach3DTextLabelToPlayer(id,p1ayerid,OffsetX,OffsetY,OffsetZ)); | |
return 1; | |
} | |
ifCMD("/Attach3DTextLabelToVehicle") | |
{ | |
RetMsg("Attach3DTextLabelToVehicle(Text3D:id, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)"); | |
GetText3D(id); | |
GetInt(vehicleid); | |
GetFloat(OffsetX); | |
GetFloat(OffsetY); | |
GetFloat(OffsetZ); | |
SendFormatMsg("Attach3DTextLabelToVehicle(%s); Return %i",params,Attach3DTextLabelToVehicle(id,vehicleid,OffsetX,OffsetY,OffsetZ)); | |
return 1; | |
} | |
ifCMD("/Update3DTextLabelText") | |
{ | |
RetMsg("Update3DTextLabelText(Text3D:id, color, const text[])"); | |
GetText3D(id); | |
GetInt(color); | |
GetString(text); | |
SendFormatMsg("Update3DTextLabelText(%s); Return %i",params,Update3DTextLabelText(id,color,text)); | |
return 1; | |
} | |
ifCMD("/CreatePlayer3DTextLabel") | |
{ | |
RetMsg("CreatePlayer3DTextLabel(playerid, const text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer=INVALID_PLAYER_ID, attachedvehicle=INVALID_VEHICLE_ID, testLOS=0)"); | |
GetInt(p1ayerid); | |
GetString(text); | |
GetInt(color); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(DrawDistance); | |
GetInt(attachedplayer); | |
GetInt(attachedvehicle); | |
GetInt(testLOS); | |
SendFormatMsg("CreatePlayer3DTextLabel(%s); Return %i",params,_:CreatePlayer3DTextLabel(p1ayerid,text,color,X,Y,Z,DrawDistance,attachedplayer,attachedvehicle,testLOS)); | |
return 1; | |
} | |
ifCMD("/DeletePlayer3DTextLabel") | |
{ | |
RetMsg("DeletePlayer3DTextLabel(playerid, PlayerText3D:id)"); | |
GetInt(p1ayerid); | |
GetPlayerText3D(id); | |
SendFormatMsg("DeletePlayer3DTextLabel(%s); Return %i",params,DeletePlayer3DTextLabel(p1ayerid,id)); | |
return 1; | |
} | |
ifCMD("/UpdatePlayer3DTextLabelText") | |
{ | |
RetMsg("UpdatePlayer3DTextLabelText(playerid, PlayerText3D:id, color, const text[])"); | |
GetInt(p1ayerid); | |
GetPlayerText3D(id); | |
GetInt(color); | |
GetString(text); | |
SendFormatMsg("UpdatePlayer3DTextLabelText(%s); Return %i",params,UpdatePlayer3DTextLabelText(p1ayerid,id,color,text)); | |
return 1; | |
} | |
ifCMD("/ShowPlayerDialog") | |
{ | |
RetMsg("ShowPlayerDialog(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[])"); | |
GetInt(p1ayerid); | |
GetInt(dialogid); | |
GetInt(style); | |
GetString(caption); | |
GetString(info); | |
GetString(button1); | |
GetString(button2); | |
SendFormatMsg("ShowPlayerDialog(%s); Return %i",params,ShowPlayerDialog(p1ayerid,dialogid,style,caption,info,button1,button2)); | |
return 1; | |
} | |
ifCMD("/a_samp.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"print\nSendClientMessage\nSendClientMessageToAll\nSendPlayerMessageToPlayer\nSendPlayerMessageToAll\nSendDeathMessage\nSendDeathMessageToPlayer\nGameTextForAll\nGameTextForPlayer\nSetTimer\nKillTimer\nGetTickCount\nGetMaxPlayers\nVectorSize\nasin\nacos\natan\natan2\nGetPlayerPoolSize\nGetVehiclePoolSize\nGetActorPoolSize\nSetGameModeText\nSetTeamCount\nAddPlayerClass\nAddPlayerClassEx\nAddStaticVehicle\nAddStaticVehicleEx\nAddStaticPickup\nCreatePickup\nDestroyPickup\nShowNameTags\nS"); | |
strcat(CmdList,"howPlayerMarkers\nGameModeExit\nSetWorldTime\nGetWeaponName\nEnableTirePopping\nEnableVehicleFriendlyFire\nAllowInteriorWeapons\nSetWeather\nSetGravity\nAllowAdminTeleport\nSetDeathDropAmount\nCreateExplosion\nEnableZoneNames\nUsePlayerPedAnims\nDisableInteriorEnterExits\nSetNameTagDrawDistance\nDisableNameTagLOS\nLimitGlobalChatRadius\nLimitPlayerMarkerRadius\nConnectNPC\nIsPlayerNPC\nIsPlayerAdmin\nKick\nBan\nBanEx\nSendRconCommand\nGetServerVarAsString\nGetServerVarAsInt\nGetServe"); | |
strcat(CmdList,"rVarAsBool\nGetPlayerNetworkStats\nGetNetworkStats\nGetPlayerVersion\nBlockIpAddress\nUnBlockIpAddress\nGetServerTickRate\nNetStats_GetConnectedTime\nNetStats_MessagesReceived\nNetStats_BytesReceived\nNetStats_MessagesSent\nNetStats_BytesSent\nNetStats_MessagesRecvPerSecond\nNetStats_PacketLossPercent\nNetStats_ConnectionStatus\nNetStats_GetIpPort\nCreateMenu\nDestroyMenu\nAddMenuItem\nSetMenuColumnHeader\nShowMenuForPlayer\nHideMenuForPlayer\nIsValidMenu\nDisableMenu\nDisableMenuRow"); | |
strcat(CmdList,"\nGetPlayerMenu\nTextDrawCreate\nTextDrawDestroy\nTextDrawLetterSize\nTextDrawTextSize\nTextDrawAlignment\nTextDrawColor\nTextDrawUseBox\nTextDrawBoxColor\nTextDrawSetShadow\nTextDrawSetOutline\nTextDrawBackgroundColor\nTextDrawFont\nTextDrawSetProportional\nTextDrawSetSelectable\nTextDrawShowForPlayer\nTextDrawHideForPlayer\nTextDrawShowForAll\nTextDrawHideForAll\nTextDrawSetString\nTextDrawSetPreviewModel\nTextDrawSetPreviewRot\nTextDrawSetPreviewVehCol\nGangZoneCreate\nGangZoneDes"); | |
strcat(CmdList,"troy\nGangZoneShowForPlayer\nGangZoneShowForAll\nGangZoneHideForPlayer\nGangZoneHideForAll\nGangZoneFlashForPlayer\nGangZoneFlashForAll\nGangZoneStopFlashForPlayer\nGangZoneStopFlashForAll\nCreate3DTextLabel\nDelete3DTextLabel\nAttach3DTextLabelToPlayer\nAttach3DTextLabelToVehicle\nUpdate3DTextLabelText\nCreatePlayer3DTextLabel\nDeletePlayer3DTextLabel\nUpdatePlayer3DTextLabelText\nShowPlayerDialog"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_samp.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/a_samp.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_samp_included\nMAX_PLAYER_NAME (24)\nMAX_PLAYERS (1000)\nMAX_VEHICLES (2000)\nMAX_ACTORS (1000)\nINVALID_PLAYER_ID (0xFFFF)\nINVALID_VEHICLE_ID (0xFFFF)\nINVALID_ACTOR_ID (0xFFFF)\nNO_TEAM (255)\nMAX_OBJECTS (1000)\nINVALID_OBJECT_ID (0xFFFF)\nMAX_GANG_ZONES (1024)\nMAX_TEXT_DRAWS (2048)\nMAX_PLAYER_TEXT_DRAWS (256)\nMAX_MENUS (128)\nMAX_3DTEXT_GLOBAL (1024)\nMAX_3DTEXT_PLAYER (1024)\nMAX_P"); | |
strcat(DefList,"ICKUPS (4096)\nINVALID_MENU (0xFF)\nINVALID_TEXT_DRAW (0xFFFF)\nINVALID_GANG_ZONE (-1)\nINVALID_3DTEXT_ID (0xFFFF)\nTEXT_DRAW_FONT_SPRITE_DRAW 4\nTEXT_DRAW_FONT_MODEL_PREVIEW 5\nDIALOG_STYLE_MSGBOX 0\nDIALOG_STYLE_INPUT 1\nDIALOG_STYLE_LIST 2\nDIALOG_STYLE_PASSWORD 3\nDIALOG_STYLE_TABLIST 4\nDIALOG_STYLE_TABLIST_HEADERS 5\nPLAYER_STATE_NONE (0)\nPLAYER_STATE_ONFOOT (1)\nPLAYER_STATE_DRIVER (2)\nPLAYER_STATE_PASSENGER (3)\nP"); | |
strcat(DefList,"LAYER_STATE_EXIT_VEHICLE (4) \nPLAYER_STATE_ENTER_VEHICLE_DRIVER (5) \nPLAYER_STATE_ENTER_VEHICLE_PASSENGER (6) \nPLAYER_STATE_WASTED (7)\nPLAYER_STATE_SPAWNED (8)\nPLAYER_STATE_SPECTATING (9)\nPLAYER_MARKERS_MODE_OFF (0)\nPLAYER_MARKERS_MODE_GLOBAL (1)\nPLAYER_MARKERS_MODE_STREAMED (2)\nWEAPON_BRASSKNUCKLE (1)\nWEAPON_GOLFCLUB (2)\nWEAPON_NITESTICK (3)\nWEAPON_KNIFE (4)\nWEAPON_BAT (5)\nWEAPON_SHOVEL (6)\nWEAPON_POOLSTICK (7)\nWEAPON_KAT"); | |
strcat(DefList,"ANA (8)\nWEAPON_CHAINSAW (9)\nWEAPON_DILDO (10)\nWEAPON_DILDO2 (11)\nWEAPON_VIBRATOR (12)\nWEAPON_VIBRATOR2 (13)\nWEAPON_FLOWER (14)\nWEAPON_CANE (15)\nWEAPON_GRENADE (16)\nWEAPON_TEARGAS (17)\nWEAPON_MOLTOV (18)\nWEAPON_COLT45 (22)\nWEAPON_SILENCED (23)\nWEAPON_DEAGLE (24)\nWEAPON_SHOTGUN (25)\nWEAPON_SAWEDOFF (26)\nWEAPON_SHOTGSPA (27)\nWEAPON_UZI (28)\nWEAPON_MP5 (29)\nWEAPON_AK47 (30)\nWEAPON_M4 "); | |
strcat(DefList," (31)\nWEAPON_TEC9 (32)\nWEAPON_RIFLE (33)\nWEAPON_SNIPER (34)\nWEAPON_ROCKETLAUNCHER (35)\nWEAPON_HEATSEEKER (36)\nWEAPON_FLAMETHROWER (37)\nWEAPON_MINIGUN (38)\nWEAPON_SATCHEL (39)\nWEAPON_BOMB (40)\nWEAPON_SPRAYCAN (41)\nWEAPON_FIREEXTINGUISHER (42)\nWEAPON_CAMERA (43)\nWEAPON_PARACHUTE (46)\nWEAPON_VEHICLE (49)\nWEAPON_DROWN (53)\nWEAPON_COLLISION (54)\nKEY_ACTION (1)\nKEY_CROUCH (2)\nKEY_FIRE (4)\nKEY_SPRINT "); | |
strcat(DefList," (8)\nKEY_SECONDARY_ATTACK (16)\nKEY_JUMP (32)\nKEY_LOOK_RIGHT (64)\nKEY_HANDBRAKE (128)\nKEY_LOOK_LEFT (256)\nKEY_SUBMISSION (512)\nKEY_LOOK_BEHIND (512)\nKEY_WALK (1024)\nKEY_ANALOG_UP (2048)\nKEY_ANALOG_DOWN (4096)\nKEY_ANALOG_LEFT (8192)\nKEY_ANALOG_RIGHT (16384)\nKEY_YES (65536)\nKEY_NO (131072)\nKEY_CTRL_BACK (262144)\nKEY_UP (-128)\nKEY_DOWN (128)\nKEY_LEFT (-128)\nKEY_RIGHT (128)\nCLICK_SOURCE_SCOREBOARD 0\nEDIT_RESPONSE_CANCEL "); | |
strcat(DefList,"0\nEDIT_RESPONSE_FINAL 1\nEDIT_RESPONSE_UPDATE 2\nSELECT_OBJECT_GLOBAL_OBJECT 1\nSELECT_OBJECT_PLAYER_OBJECT 2\nBULLET_HIT_TYPE_NONE 0\nBULLET_HIT_TYPE_PLAYER 1\nBULLET_HIT_TYPE_VEHICLE 2\nBULLET_HIT_TYPE_OBJECT 3\nBULLET_HIT_TYPE_PLAYER_OBJECT 4"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_samp.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/CreateVehicle") | |
{ | |
RetMsg("CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren=0)"); | |
GetInt(vehicletype); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
GetFloat(rotation); | |
GetInt(color1); | |
GetInt(color2); | |
GetInt(respawn_delay); | |
GetInt(addsiren); | |
SendFormatMsg("CreateVehicle(%s); Return %i",params,CreateVehicle(vehicletype,x,y,z,rotation,color1,color2,respawn_delay,addsiren)); | |
return 1; | |
} | |
ifCMD("/DestroyVehicle") | |
{ | |
RetMsg("DestroyVehicle(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("DestroyVehicle(%s); Return %i",params,DestroyVehicle(vehicleid)); | |
return 1; | |
} | |
ifCMD("/IsVehicleStreamedIn") | |
{ | |
RetMsg("IsVehicleStreamedIn(vehicleid, forplayerid)"); | |
GetInt(vehicleid); | |
GetInt(forp1ayerid); | |
SendFormatMsg("IsVehicleStreamedIn(%s); Return %i",params,IsVehicleStreamedIn(vehicleid,forp1ayerid)); | |
return 1; | |
} | |
ifCMD("/GetVehiclePos") | |
{ | |
RetMsg("GetVehiclePos(vehicleid, &Float:x, &Float:y, &Float:z)"); | |
GetInt(vehicleid); | |
SetFloat(x); | |
SetFloat(y); | |
SetFloat(z); | |
SendFormatMsg("GetVehiclePos(%s), x(%f), y(%f), z(%f); Return %i",params,x,y,z,GetVehiclePos(vehicleid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/SetVehiclePos") | |
{ | |
RetMsg("SetVehiclePos(vehicleid, Float:x, Float:y, Float:z)"); | |
GetInt(vehicleid); | |
GetFloat(x); | |
GetFloat(y); | |
GetFloat(z); | |
SendFormatMsg("SetVehiclePos(%s); Return %i",params,SetVehiclePos(vehicleid,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetVehicleZAngle") | |
{ | |
RetMsg("GetVehicleZAngle(vehicleid, &Float:z_angle)"); | |
GetInt(vehicleid); | |
SetFloat(z_angle); | |
SendFormatMsg("GetVehicleZAngle(%s), z_angle(%f); Return %i",params,z_angle,GetVehicleZAngle(vehicleid,z_angle)); | |
return 1; | |
} | |
ifCMD("/GetVehicleRotationQuat") | |
{ | |
RetMsg("GetVehicleRotationQuat(vehicleid, &Float:w, &Float:x, &Float:y, &Float:z)"); | |
GetInt(vehicleid); | |
SetFloat(w); | |
SetFloat(x); | |
SetFloat(y); | |
SetFloat(z); | |
SendFormatMsg("GetVehicleRotationQuat(%s), w(%f), x(%f), y(%f), z(%f); Return %i",params,w,x,y,z,GetVehicleRotationQuat(vehicleid,w,x,y,z)); | |
return 1; | |
} | |
ifCMD("/GetVehicleDistanceFromPoint") | |
{ | |
RetMsg("GetVehicleDistanceFromPoint(vehicleid, Float:X, Float:Y, Float:Z)"); | |
GetInt(vehicleid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("GetVehicleDistanceFromPoint(%s); Return %f",params,GetVehicleDistanceFromPoint(vehicleid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetVehicleZAngle") | |
{ | |
RetMsg("SetVehicleZAngle(vehicleid, Float:z_angle)"); | |
GetInt(vehicleid); | |
GetFloat(z_angle); | |
SendFormatMsg("SetVehicleZAngle(%s); Return %i",params,SetVehicleZAngle(vehicleid,z_angle)); | |
return 1; | |
} | |
ifCMD("/SetVehicleParamsForPlayer") | |
{ | |
RetMsg("SetVehicleParamsForPlayer(vehicleid,playerid,objective,doorslocked)"); | |
GetInt(vehicleid); | |
GetInt(p1ayerid); | |
GetInt(objective); | |
GetInt(doorslocked); | |
SendFormatMsg("SetVehicleParamsForPlayer(%s); Return %i",params,SetVehicleParamsForPlayer(vehicleid,p1ayerid,objective,doorslocked)); | |
return 1; | |
} | |
ifCMD("/ManualVehicleEngineAndLights") | |
{ | |
ManualVehicleEngineAndLights(); | |
return 1; | |
} | |
ifCMD("/SetVehicleParamsEx") | |
{ | |
RetMsg("SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)"); | |
GetInt(vehicleid); | |
GetInt(engine); | |
GetInt(lights); | |
GetInt(alarm); | |
GetInt(doors); | |
GetInt(bonnet); | |
GetInt(boot); | |
GetInt(objective); | |
SendFormatMsg("SetVehicleParamsEx(%s); Return %i",params,SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective)); | |
return 1; | |
} | |
ifCMD("/GetVehicleParamsEx") | |
{ | |
RetMsg("GetVehicleParamsEx(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective)"); | |
GetInt(vehicleid); | |
SetInt(engine); | |
SetInt(lights); | |
SetInt(alarm); | |
SetInt(doors); | |
SetInt(bonnet); | |
SetInt(boot); | |
SetInt(objective); | |
SendFormatMsg("GetVehicleParamsEx(%s), engine(%i), lights(%i), alarm(%i), doors(%i), bonnet(%i), boot(%i), objective(%i); Return %i",params,engine,lights,alarm,doors,bonnet,boot,objective,GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective)); | |
return 1; | |
} | |
ifCMD("/GetVehicleParamsSirenState") | |
{ | |
RetMsg("GetVehicleParamsSirenState(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("GetVehicleParamsSirenState(%s); Return %i",params,GetVehicleParamsSirenState(vehicleid)); | |
return 1; | |
} | |
ifCMD("/SetVehicleParamsCarDoors") | |
{ | |
RetMsg("SetVehicleParamsCarDoors(vehicleid, driver, passenger, backleft, backright)"); | |
GetInt(vehicleid); | |
GetInt(driver); | |
GetInt(passenger); | |
GetInt(backleft); | |
GetInt(backright); | |
SendFormatMsg("SetVehicleParamsCarDoors(%s); Return %i",params,SetVehicleParamsCarDoors(vehicleid,driver,passenger,backleft,backright)); | |
return 1; | |
} | |
ifCMD("/GetVehicleParamsCarDoors") | |
{ | |
RetMsg("GetVehicleParamsCarDoors(vehicleid, &driver, &passenger, &backleft, &backright)"); | |
GetInt(vehicleid); | |
SetInt(driver); | |
SetInt(passenger); | |
SetInt(backleft); | |
SetInt(backright); | |
SendFormatMsg("GetVehicleParamsCarDoors(%s), driver(%i), passenger(%i), backleft(%i), backright(%i); Return %i",params,driver,passenger,backleft,backright,GetVehicleParamsCarDoors(vehicleid,driver,passenger,backleft,backright)); | |
return 1; | |
} | |
ifCMD("/SetVehicleParamsCarWindows") | |
{ | |
RetMsg("SetVehicleParamsCarWindows(vehicleid, driver, passenger, backleft, backright)"); | |
GetInt(vehicleid); | |
GetInt(driver); | |
GetInt(passenger); | |
GetInt(backleft); | |
GetInt(backright); | |
SendFormatMsg("SetVehicleParamsCarWindows(%s); Return %i",params,SetVehicleParamsCarWindows(vehicleid,driver,passenger,backleft,backright)); | |
return 1; | |
} | |
ifCMD("/GetVehicleParamsCarWindows") | |
{ | |
RetMsg("GetVehicleParamsCarWindows(vehicleid, &driver, &passenger, &backleft, &backright)"); | |
GetInt(vehicleid); | |
SetInt(driver); | |
SetInt(passenger); | |
SetInt(backleft); | |
SetInt(backright); | |
SendFormatMsg("GetVehicleParamsCarWindows(%s), driver(%i), passenger(%i), backleft(%i), backright(%i); Return %i",params,driver,passenger,backleft,backright,GetVehicleParamsCarWindows(vehicleid,driver,passenger,backleft,backright)); | |
return 1; | |
} | |
ifCMD("/SetVehicleToRespawn") | |
{ | |
RetMsg("SetVehicleToRespawn(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("SetVehicleToRespawn(%s); Return %i",params,SetVehicleToRespawn(vehicleid)); | |
return 1; | |
} | |
ifCMD("/LinkVehicleToInterior") | |
{ | |
RetMsg("LinkVehicleToInterior(vehicleid, interiorid)"); | |
GetInt(vehicleid); | |
GetInt(interiorid); | |
SendFormatMsg("LinkVehicleToInterior(%s); Return %i",params,LinkVehicleToInterior(vehicleid,interiorid)); | |
return 1; | |
} | |
ifCMD("/AddVehicleComponent") | |
{ | |
RetMsg("AddVehicleComponent(vehicleid, componentid)"); | |
GetInt(vehicleid); | |
GetInt(componentid); | |
SendFormatMsg("AddVehicleComponent(%s); Return %i",params,AddVehicleComponent(vehicleid,componentid)); | |
return 1; | |
} | |
ifCMD("/RemoveVehicleComponent") | |
{ | |
RetMsg("RemoveVehicleComponent(vehicleid, componentid)"); | |
GetInt(vehicleid); | |
GetInt(componentid); | |
SendFormatMsg("RemoveVehicleComponent(%s); Return %i",params,RemoveVehicleComponent(vehicleid,componentid)); | |
return 1; | |
} | |
ifCMD("/ChangeVehicleColor") | |
{ | |
RetMsg("ChangeVehicleColor(vehicleid, color1, color2)"); | |
GetInt(vehicleid); | |
GetInt(color1); | |
GetInt(color2); | |
SendFormatMsg("ChangeVehicleColor(%s); Return %i",params,ChangeVehicleColor(vehicleid,color1,color2)); | |
return 1; | |
} | |
ifCMD("/ChangeVehiclePaintjob") | |
{ | |
RetMsg("ChangeVehiclePaintjob(vehicleid, paintjobid)"); | |
GetInt(vehicleid); | |
GetInt(paintjobid); | |
SendFormatMsg("ChangeVehiclePaintjob(%s); Return %i",params,ChangeVehiclePaintjob(vehicleid,paintjobid)); | |
return 1; | |
} | |
ifCMD("/SetVehicleHealth") | |
{ | |
RetMsg("SetVehicleHealth(vehicleid, Float:health)"); | |
GetInt(vehicleid); | |
GetFloat(health); | |
SendFormatMsg("SetVehicleHealth(%s); Return %i",params,SetVehicleHealth(vehicleid,health)); | |
return 1; | |
} | |
ifCMD("/GetVehicleHealth") | |
{ | |
RetMsg("GetVehicleHealth(vehicleid, &Float:health)"); | |
GetInt(vehicleid); | |
SetFloat(health); | |
SendFormatMsg("GetVehicleHealth(%s), health(%f); Return %i",params,health,GetVehicleHealth(vehicleid,health)); | |
return 1; | |
} | |
ifCMD("/AttachTrailerToVehicle") | |
{ | |
RetMsg("AttachTrailerToVehicle(trailerid, vehicleid)"); | |
GetInt(trailerid); | |
GetInt(vehicleid); | |
SendFormatMsg("AttachTrailerToVehicle(%s); Return %i",params,AttachTrailerToVehicle(trailerid,vehicleid)); | |
return 1; | |
} | |
ifCMD("/DetachTrailerFromVehicle") | |
{ | |
RetMsg("DetachTrailerFromVehicle(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("DetachTrailerFromVehicle(%s); Return %i",params,DetachTrailerFromVehicle(vehicleid)); | |
return 1; | |
} | |
ifCMD("/IsTrailerAttachedToVehicle") | |
{ | |
RetMsg("IsTrailerAttachedToVehicle(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("IsTrailerAttachedToVehicle(%s); Return %i",params,IsTrailerAttachedToVehicle(vehicleid)); | |
return 1; | |
} | |
ifCMD("/GetVehicleTrailer") | |
{ | |
RetMsg("GetVehicleTrailer(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("GetVehicleTrailer(%s); Return %i",params,GetVehicleTrailer(vehicleid)); | |
return 1; | |
} | |
ifCMD("/SetVehicleNumberPlate") | |
{ | |
RetMsg("SetVehicleNumberPlate(vehicleid, const numberplate[])"); | |
GetInt(vehicleid); | |
GetString(numberplate); | |
SendFormatMsg("SetVehicleNumberPlate(%s); Return %i",params,SetVehicleNumberPlate(vehicleid,numberplate)); | |
return 1; | |
} | |
ifCMD("/GetVehicleModel") | |
{ | |
RetMsg("GetVehicleModel(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("GetVehicleModel(%s); Return %i",params,GetVehicleModel(vehicleid)); | |
return 1; | |
} | |
ifCMD("/GetVehicleComponentInSlot") | |
{ | |
RetMsg("GetVehicleComponentInSlot(vehicleid, slot)"); | |
GetInt(vehicleid); | |
GetInt(slot); | |
SendFormatMsg("GetVehicleComponentInSlot(%s); Return %i",params,GetVehicleComponentInSlot(vehicleid,slot)); | |
return 1; | |
} | |
ifCMD("/GetVehicleComponentType") | |
{ | |
RetMsg("GetVehicleComponentType(component)"); | |
GetInt(component); | |
SendFormatMsg("GetVehicleComponentType(%s); Return %i",params,GetVehicleComponentType(component)); | |
return 1; | |
} | |
ifCMD("/RepairVehicle") | |
{ | |
RetMsg("RepairVehicle(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("RepairVehicle(%s); Return %i",params,RepairVehicle(vehicleid)); | |
return 1; | |
} | |
ifCMD("/GetVehicleVelocity") | |
{ | |
RetMsg("GetVehicleVelocity(vehicleid, &Float:X, &Float:Y, &Float:Z)"); | |
GetInt(vehicleid); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetVehicleVelocity(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetVehicleVelocity(vehicleid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetVehicleVelocity") | |
{ | |
RetMsg("SetVehicleVelocity(vehicleid, Float:X, Float:Y, Float:Z)"); | |
GetInt(vehicleid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetVehicleVelocity(%s); Return %i",params,SetVehicleVelocity(vehicleid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetVehicleAngularVelocity") | |
{ | |
RetMsg("SetVehicleAngularVelocity(vehicleid, Float:X, Float:Y, Float:Z)"); | |
GetInt(vehicleid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetVehicleAngularVelocity(%s); Return %i",params,SetVehicleAngularVelocity(vehicleid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/GetVehicleDamageStatus") | |
{ | |
RetMsg("GetVehicleDamageStatus(vehicleid, &panels, &doors, &lights, &tires)"); | |
GetInt(vehicleid); | |
SetInt(panels); | |
SetInt(doors); | |
SetInt(lights); | |
SetInt(tires); | |
SendFormatMsg("GetVehicleDamageStatus(%s), panels(%i), doors(%i), lights(%i), tires(%i); Return %i",params,panels,doors,lights,tires,GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires)); | |
return 1; | |
} | |
ifCMD("/UpdateVehicleDamageStatus") | |
{ | |
RetMsg("UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires)"); | |
GetInt(vehicleid); | |
GetInt(panels); | |
GetInt(doors); | |
GetInt(lights); | |
GetInt(tires); | |
SendFormatMsg("UpdateVehicleDamageStatus(%s); Return %i",params,UpdateVehicleDamageStatus(vehicleid,panels,doors,lights,tires)); | |
return 1; | |
} | |
ifCMD("/GetVehicleModelInfo") | |
{ | |
RetMsg("GetVehicleModelInfo(vehiclemodel, infotype, &Float:X, &Float:Y, &Float:Z)"); | |
GetInt(vehiclemodel); | |
GetInt(infotype); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetVehicleModelInfo(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetVehicleModelInfo(vehiclemodel,infotype,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetVehicleVirtualWorld") | |
{ | |
RetMsg("SetVehicleVirtualWorld(vehicleid, worldid)"); | |
GetInt(vehicleid); | |
GetInt(worldid); | |
SendFormatMsg("SetVehicleVirtualWorld(%s); Return %i",params,SetVehicleVirtualWorld(vehicleid,worldid)); | |
return 1; | |
} | |
ifCMD("/GetVehicleVirtualWorld") | |
{ | |
RetMsg("GetVehicleVirtualWorld(vehicleid)"); | |
GetInt(vehicleid); | |
SendFormatMsg("GetVehicleVirtualWorld(%s); Return %i",params,GetVehicleVirtualWorld(vehicleid)); | |
return 1; | |
} | |
ifCMD("/a_vehicles.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"CreateVehicle\nDestroyVehicle\nIsVehicleStreamedIn\nGetVehiclePos\nSetVehiclePos\nGetVehicleZAngle\nGetVehicleRotationQuat\nGetVehicleDistanceFromPoint\nSetVehicleZAngle\nSetVehicleParamsForPlayer\nManualVehicleEngineAndLights\nSetVehicleParamsEx\nGetVehicleParamsEx\nGetVehicleParamsSirenState\nSetVehicleParamsCarDoors\nGetVehicleParamsCarDoors\nSetVehicleParamsCarWindows\nGetVehicleParamsCarWindows\nSetVehicleToRespawn\nLinkVehicleToInterior\nAddVehicleComponent\nRemoveVehicleCompon"); | |
strcat(CmdList,"ent\nChangeVehicleColor\nChangeVehiclePaintjob\nSetVehicleHealth\nGetVehicleHealth\nAttachTrailerToVehicle\nDetachTrailerFromVehicle\nIsTrailerAttachedToVehicle\nGetVehicleTrailer\nSetVehicleNumberPlate\nGetVehicleModel\nGetVehicleComponentInSlot\nGetVehicleComponentType\nRepairVehicle\nGetVehicleVelocity\nSetVehicleVelocity\nSetVehicleAngularVelocity\nGetVehicleDamageStatus\nUpdateVehicleDamageStatus\nGetVehicleModelInfo\nSetVehicleVirtualWorld\nGetVehicleVirtualWorld"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_vehicles.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/a_vehicles.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_vehicles_included\nCARMODTYPE_SPOILER 0\nCARMODTYPE_HOOD 1\nCARMODTYPE_ROOF 2\nCARMODTYPE_SIDESKIRT 3\nCARMODTYPE_LAMPS 4\nCARMODTYPE_NITRO 5\nCARMODTYPE_EXHAUST 6\nCARMODTYPE_WHEELS 7\nCARMODTYPE_STEREO 8\nCARMODTYPE_HYDRAULICS 9\nCARMODTYPE_FRONT_BUMPER 10\nCARMODTYPE_REAR_BUMPER 11\nCARMODTYPE_VENT_RIGHT 12\nCARMODTYPE_VENT_LEFT 13\nVEHICLE_PARAMS_UNSET -1\nVEHICLE_PARAMS_OFF 0\nVEHICLE_PARAMS_ON 1\nVEHICLE_MODEL_INFO_SIZE 1\nVEHICLE_MODEL_INFO_FRONTSEAT 2\nVEHICL"); | |
strcat(DefList,"E_MODEL_INFO_REARSEAT 3\nVEHICLE_MODEL_INFO_PETROLCAP 4\nVEHICLE_MODEL_INFO_WHEELSFRONT 5\nVEHICLE_MODEL_INFO_WHEELSREAR 6\nVEHICLE_MODEL_INFO_WHEELSMID 7\nVEHICLE_MODEL_INFO_FRONT_BUMPER_Z 8\nVEHICLE_MODEL_INFO_REAR_BUMPER_Z 9"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_vehicles.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/CreateActor") | |
{ | |
RetMsg("CreateActor(modelid, Float:X, Float:Y, Float:Z, Float:Rotation)"); | |
GetInt(modelid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
GetFloat(Rotation); | |
SendFormatMsg("CreateActor(%s); Return %i",params,CreateActor(modelid,X,Y,Z,Rotation)); | |
return 1; | |
} | |
ifCMD("/DestroyActor") | |
{ | |
RetMsg("DestroyActor(actorid)"); | |
GetInt(actorid); | |
SendFormatMsg("DestroyActor(%s); Return %i",params,DestroyActor(actorid)); | |
return 1; | |
} | |
ifCMD("/IsActorStreamedIn") | |
{ | |
RetMsg("IsActorStreamedIn(actorid, forplayerid)"); | |
GetInt(actorid); | |
GetInt(forp1ayerid); | |
SendFormatMsg("IsActorStreamedIn(%s); Return %i",params,IsActorStreamedIn(actorid,forp1ayerid)); | |
return 1; | |
} | |
ifCMD("/SetActorVirtualWorld") | |
{ | |
RetMsg("SetActorVirtualWorld(actorid, vworld)"); | |
GetInt(actorid); | |
GetInt(vworld); | |
SendFormatMsg("SetActorVirtualWorld(%s); Return %i",params,SetActorVirtualWorld(actorid,vworld)); | |
return 1; | |
} | |
ifCMD("/GetActorVirtualWorld") | |
{ | |
RetMsg("GetActorVirtualWorld(actorid)"); | |
GetInt(actorid); | |
SendFormatMsg("GetActorVirtualWorld(%s); Return %i",params,GetActorVirtualWorld(actorid)); | |
return 1; | |
} | |
ifCMD("/ApplyActorAnimation") | |
{ | |
RetMsg("ApplyActorAnimation(actorid, const animlib[], const animname[], Float:fDelta, loop, lockx, locky, freeze, time)"); | |
GetInt(actorid); | |
GetString(animlib); | |
GetString(animname); | |
GetFloat(fDelta); | |
GetInt(loop); | |
GetInt(lockx); | |
GetInt(locky); | |
GetInt(freeze); | |
GetInt(time); | |
SendFormatMsg("ApplyActorAnimation(%s); Return %i",params,ApplyActorAnimation(actorid,animlib,animname,fDelta,loop,lockx,locky,freeze,time)); | |
return 1; | |
} | |
ifCMD("/ClearActorAnimations") | |
{ | |
RetMsg("ClearActorAnimations(actorid)"); | |
GetInt(actorid); | |
SendFormatMsg("ClearActorAnimations(%s); Return %i",params,ClearActorAnimations(actorid)); | |
return 1; | |
} | |
ifCMD("/SetActorPos") | |
{ | |
RetMsg("SetActorPos(actorid, Float:X, Float:Y, Float:Z)"); | |
GetInt(actorid); | |
GetFloat(X); | |
GetFloat(Y); | |
GetFloat(Z); | |
SendFormatMsg("SetActorPos(%s); Return %i",params,SetActorPos(actorid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/GetActorPos") | |
{ | |
RetMsg("GetActorPos(actorid, &Float:X, &Float:Y, &Float:Z)"); | |
GetInt(actorid); | |
SetFloat(X); | |
SetFloat(Y); | |
SetFloat(Z); | |
SendFormatMsg("GetActorPos(%s), X(%f), Y(%f), Z(%f); Return %i",params,X,Y,Z,GetActorPos(actorid,X,Y,Z)); | |
return 1; | |
} | |
ifCMD("/SetActorFacingAngle") | |
{ | |
RetMsg("SetActorFacingAngle(actorid, Float:ang)"); | |
GetInt(actorid); | |
GetFloat(ang); | |
SendFormatMsg("SetActorFacingAngle(%s); Return %i",params,SetActorFacingAngle(actorid,ang)); | |
return 1; | |
} | |
ifCMD("/GetActorFacingAngle") | |
{ | |
RetMsg("GetActorFacingAngle(actorid, &Float:ang)"); | |
GetInt(actorid); | |
SetFloat(ang); | |
SendFormatMsg("GetActorFacingAngle(%s), ang(%f); Return %i",params,ang,GetActorFacingAngle(actorid,ang)); | |
return 1; | |
} | |
ifCMD("/SetActorHealth") | |
{ | |
RetMsg("SetActorHealth(actorid, Float:health)"); | |
GetInt(actorid); | |
GetFloat(health); | |
SendFormatMsg("SetActorHealth(%s); Return %i",params,SetActorHealth(actorid,health)); | |
return 1; | |
} | |
ifCMD("/GetActorHealth") | |
{ | |
RetMsg("GetActorHealth(actorid, &Float:health)"); | |
GetInt(actorid); | |
SetFloat(health); | |
SendFormatMsg("GetActorHealth(%s), health(%f); Return %i",params,health,GetActorHealth(actorid,health)); | |
return 1; | |
} | |
ifCMD("/SetActorInvulnerable") | |
{ | |
RetMsg("SetActorInvulnerable(actorid, invulnerable = true)"); | |
GetInt(actorid); | |
GetInt(invulnerable); | |
SendFormatMsg("SetActorInvulnerable(%s); Return %i",params,SetActorInvulnerable(actorid,invulnerable)); | |
return 1; | |
} | |
ifCMD("/IsActorInvulnerable") | |
{ | |
RetMsg("IsActorInvulnerable(actorid)"); | |
GetInt(actorid); | |
SendFormatMsg("IsActorInvulnerable(%s); Return %i",params,IsActorInvulnerable(actorid)); | |
return 1; | |
} | |
ifCMD("/IsValidActor") | |
{ | |
RetMsg("IsValidActor(actorid)"); | |
GetInt(actorid); | |
SendFormatMsg("IsValidActor(%s); Return %i",params,IsValidActor(actorid)); | |
return 1; | |
} | |
ifCMD("/a_actor.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"CreateActor\nDestroyActor\nIsActorStreamedIn\nSetActorVirtualWorld\nGetActorVirtualWorld\nApplyActorAnimation\nClearActorAnimations\nSetActorPos\nGetActorPos\nSetActorFacingAngle\nGetActorFacingAngle\nSetActorHealth\nGetActorHealth\nSetActorInvulnerable\nIsActorInvulnerable\nIsValidActor"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_actor.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/a_actor.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_actor_included"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"a_actor.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/float") | |
{ | |
RetMsg("float(value)"); | |
GetInt(value); | |
SendFormatMsg("float(%s); Return %f",params,float(value)); | |
return 1; | |
} | |
ifCMD("/floatstr") | |
{ | |
RetMsg("floatstr(const string[])"); | |
GetString(string); | |
SendFormatMsg("floatstr(%s); Return %f",params,floatstr(string)); | |
return 1; | |
} | |
ifCMD("/floatmul") | |
{ | |
RetMsg("floatmul(Float:oper1, Float:oper2)"); | |
GetFloat(oper1); | |
GetFloat(oper2); | |
SendFormatMsg("floatmul(%s); Return %f",params,floatmul(oper1,oper2)); | |
return 1; | |
} | |
ifCMD("/floatdiv") | |
{ | |
RetMsg("floatdiv(Float:dividend, Float:divisor)"); | |
GetFloat(dividend); | |
GetFloat(divisor); | |
SendFormatMsg("floatdiv(%s); Return %f",params,floatdiv(dividend,divisor)); | |
return 1; | |
} | |
ifCMD("/floatadd") | |
{ | |
RetMsg("floatadd(Float:oper1, Float:oper2)"); | |
GetFloat(oper1); | |
GetFloat(oper2); | |
SendFormatMsg("floatadd(%s); Return %f",params,floatadd(oper1,oper2)); | |
return 1; | |
} | |
ifCMD("/floatsub") | |
{ | |
RetMsg("floatsub(Float:oper1, Float:oper2)"); | |
GetFloat(oper1); | |
GetFloat(oper2); | |
SendFormatMsg("floatsub(%s); Return %f",params,floatsub(oper1,oper2)); | |
return 1; | |
} | |
ifCMD("/floatfract") | |
{ | |
RetMsg("floatfract(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("floatfract(%s); Return %f",params,floatfract(value)); | |
return 1; | |
} | |
ifCMD("/floatround") | |
{ | |
RetMsg("floatround(Float:value, floatround_method:method=floatround_round)"); | |
GetFloat(value); | |
Getfloatround_method(method); | |
SendFormatMsg("floatround(%s); Return %i",params,floatround(value,method)); | |
return 1; | |
} | |
ifCMD("/floatcmp") | |
{ | |
RetMsg("floatcmp(Float:oper1, Float:oper2)"); | |
GetFloat(oper1); | |
GetFloat(oper2); | |
SendFormatMsg("floatcmp(%s); Return %i",params,floatcmp(oper1,oper2)); | |
return 1; | |
} | |
ifCMD("/floatsqroot") | |
{ | |
RetMsg("floatsqroot(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("floatsqroot(%s); Return %f",params,floatsqroot(value)); | |
return 1; | |
} | |
ifCMD("/floatpower") | |
{ | |
RetMsg("floatpower(Float:value, Float:exponent)"); | |
GetFloat(value); | |
GetFloat(exponent); | |
SendFormatMsg("floatpower(%s); Return %f",params,floatpower(value,exponent)); | |
return 1; | |
} | |
ifCMD("/floatlog") | |
{ | |
RetMsg("floatlog(Float:value, Float:base=10.0)"); | |
GetFloat(value); | |
GetFloat(base); | |
SendFormatMsg("floatlog(%s); Return %f",params,floatlog(value,base)); | |
return 1; | |
} | |
ifCMD("/floatsin") | |
{ | |
RetMsg("floatsin(Float:value, anglemode:mode=radian)"); | |
GetFloat(value); | |
Getanglemode(mode); | |
SendFormatMsg("floatsin(%s); Return %f",params,floatsin(value,mode)); | |
return 1; | |
} | |
ifCMD("/floatcos") | |
{ | |
RetMsg("floatcos(Float:value, anglemode:mode=radian)"); | |
GetFloat(value); | |
Getanglemode(mode); | |
SendFormatMsg("floatcos(%s); Return %f",params,floatcos(value,mode)); | |
return 1; | |
} | |
ifCMD("/floattan") | |
{ | |
RetMsg("floattan(Float:value, anglemode:mode=radian)"); | |
GetFloat(value); | |
Getanglemode(mode); | |
SendFormatMsg("floattan(%s); Return %f",params,floattan(value,mode)); | |
return 1; | |
} | |
ifCMD("/floatabs") | |
{ | |
RetMsg("floatabs(Float:value)"); | |
GetFloat(value); | |
SendFormatMsg("floatabs(%s); Return %f",params,floatabs(value)); | |
return 1; | |
} | |
ifCMD("/float.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"float\nfloatstr\nfloatmul\nfloatdiv\nfloatadd\nfloatsub\nfloatfract\nfloatround\nfloatcmp\nfloatsqroot\nfloatpower\nfloatlog\nfloatsin\nfloatcos\nfloattan\nfloatabs"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"float.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/float.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_Float_included"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"float.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/strlen") | |
{ | |
RetMsg("strlen(const string[])"); | |
GetString(string); | |
SendFormatMsg("strlen(%s); Return %i",params,strlen(string)); | |
return 1; | |
} | |
ifCMD("/strpack") | |
{ | |
RetMsg("strpack(dest[], const source[], maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(maxlength); | |
SendFormatMsg("strpack(%s), dest(%s); Return %i",params,dest,strpack(dest,source,maxlength)); | |
return 1; | |
} | |
ifCMD("/strunpack") | |
{ | |
RetMsg("strunpack(dest[], const source[], maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(maxlength); | |
SendFormatMsg("strunpack(%s), dest(%s); Return %i",params,dest,strunpack(dest,source,maxlength)); | |
return 1; | |
} | |
ifCMD("/strcat") | |
{ | |
RetMsg("strcat(dest[], const source[], maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(maxlength); | |
SendFormatMsg("strcat(%s), dest(%s); Return %i",params,dest,strcat(dest,source,maxlength)); | |
return 1; | |
} | |
ifCMD("/strmid") | |
{ | |
RetMsg("strmid(dest[], const source[], start, end, maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(start); | |
GetInt(end); | |
GetInt(maxlength); | |
SendFormatMsg("strmid(%s), dest(%s); Return %i",params,dest,strmid(dest,source,start,end,maxlength)); | |
return 1; | |
} | |
ifCMD("/strins") | |
{ | |
RetMsg("strins(string[], const substr[], pos, maxlength=sizeof string)"); | |
SetString(string); | |
GetString(substr); | |
GetInt(pos); | |
GetInt(maxlength); | |
SendFormatMsg(" strins(%s), string(%s); Return %i",params,string,_: strins(string,substr,pos,maxlength)); | |
return 1; | |
} | |
ifCMD("/strdel") | |
{ | |
RetMsg("strdel(string[], start, end)"); | |
SetString(string); | |
GetInt(start); | |
GetInt(end); | |
SendFormatMsg(" strdel(%s), string(%s); Return %i",params,string,_: strdel(string,start,end)); | |
return 1; | |
} | |
ifCMD("/strcmp") | |
{ | |
RetMsg("strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax)"); | |
GetString(string1); | |
GetString(string2); | |
Getbool(ignorecase); | |
GetInt(length); | |
SendFormatMsg("strcmp(%s); Return %i",params,strcmp(string1,string2,ignorecase,length)); | |
return 1; | |
} | |
ifCMD("/strfind") | |
{ | |
RetMsg("strfind(const string[], const sub[], bool:ignorecase=false, pos=0)"); | |
GetString(string); | |
GetString(sub); | |
Getbool(ignorecase); | |
GetInt(pos); | |
SendFormatMsg("strfind(%s); Return %i",params,strfind(string,sub,ignorecase,pos)); | |
return 1; | |
} | |
ifCMD("/strval") | |
{ | |
RetMsg("strval(const string[])"); | |
GetString(string); | |
SendFormatMsg("strval(%s); Return %i",params,strval(string)); | |
return 1; | |
} | |
ifCMD("/valstr") | |
{ | |
RetMsg("valstr(dest[], value, bool:pack=false)"); | |
SetString(dest); | |
GetInt(value); | |
Getbool(pack); | |
SendFormatMsg("valstr(%s), dest(%s); Return %i",params,dest,valstr(dest,value,pack)); | |
return 1; | |
} | |
ifCMD("/ispacked") | |
{ | |
RetMsg("ispacked(const string[])"); | |
GetString(string); | |
SendFormatMsg(" ispacked(%s); Return %i",params,_: ispacked(string)); | |
return 1; | |
} | |
ifCMD("/uudecode") | |
{ | |
RetMsg("uudecode(dest[], const source[], maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(maxlength); | |
SendFormatMsg("uudecode(%s), dest(%s); Return %i",params,dest,uudecode(dest,source,maxlength)); | |
return 1; | |
} | |
ifCMD("/uuencode") | |
{ | |
RetMsg("uuencode(dest[], const source[], numbytes, maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(numbytes); | |
GetInt(maxlength); | |
SendFormatMsg("uuencode(%s), dest(%s); Return %i",params,dest,uuencode(dest,source,numbytes,maxlength)); | |
return 1; | |
} | |
ifCMD("/memcpy") | |
{ | |
RetMsg("memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest)"); | |
SetString(dest); | |
GetString(source); | |
GetInt(index); | |
GetInt(numbytes); | |
GetInt(maxlength); | |
SendFormatMsg("memcpy(%s), dest(%s); Return %i",params,dest,memcpy(dest,source,index,numbytes,maxlength)); | |
return 1; | |
} | |
ifCMD("/string.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"strlen\nstrpack\nstrunpack\nstrcat\nstrmid\nstrins\nstrdel\nstrcmp\nstrfind\nstrval\nvalstr\nispacked\nuudecode\nuuencode\nmemcpy"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"string.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/string.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_string_included"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"string.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/gettime") | |
{ | |
SetInt(hour); | |
SetInt(minute); | |
SetInt(second); | |
SendFormatMsg("gettime(%s), hour(%i), minute(%i), second(%i); Return %i",params,hour,minute,second,gettime(hour,minute,second)); | |
return 1; | |
} | |
ifCMD("/getdate") | |
{ | |
SetInt(year); | |
SetInt(month); | |
SetInt(day); | |
SendFormatMsg("getdate(%s), year(%i), month(%i), day(%i); Return %i",params,year,month,day,getdate(year,month,day)); | |
return 1; | |
} | |
ifCMD("/tickcount") | |
{ | |
SetInt(granularity); | |
SendFormatMsg("tickcount(%s), granularity(%i); Return %i",params,granularity,tickcount(granularity)); | |
return 1; | |
} | |
ifCMD("/time.inc") | |
{ | |
new CmdList[3120]; | |
strcat(CmdList,"gettime\ngetdate\ntickcount"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"time.inc",CmdList,"Select","Close"); | |
return 1; | |
} | |
ifCMD("/time.def") | |
{ | |
new DefList[3120]; | |
strcat(DefList,"_time_included"); | |
ShowDialogFS(playerid,1,DIALOG_STYLE_LIST,"time.defines",DefList,"Select","Close"); | |
return 1; | |
} | |
return 0; | |
} | |
new isFunction; | |
GetParameter(const string[], &index) | |
{ | |
new result[128] = ""; | |
new findChar = ' '; | |
if(index==0) | |
{ | |
isFunction = 0; | |
for(new i = 0; i < strlen(string); i++) if(string[i] == '(') isFunction = 2; | |
} | |
if(isFunction==1) findChar = ','; | |
else if(isFunction==2) | |
{ | |
isFunction=1; | |
findChar = '('; | |
} | |
new length = strlen(string); | |
new startToFind = 0; | |
while(string[index] != findChar) | |
{ | |
if(index < length) | |
{ | |
result[startToFind] = string[index]; | |
index++; | |
startToFind++; | |
} | |
else | |
{ | |
result[startToFind] = EOS; | |
return result; | |
} | |
} | |
index++; | |
result[startToFind] = EOS; | |
return result; | |
} | |
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) | |
{ | |
if(GetPVarInt(playerid,"dialogFsFlag") == 1) | |
{ | |
SetPVarInt(playerid,"dialogFsFlag",0); | |
if(response) | |
{ | |
new sCmdResponse[128] = ""; | |
if(inputtext[0] != '/') | |
{ | |
sCmdResponse[0] = '/'; | |
sCmdResponse[1] = 0; | |
} | |
strcat(sCmdResponse,inputtext); | |
OnPlayerCommandText(playerid,sCmdResponse); | |
} | |
return 1; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment