Still giving out errors, sec i will get full public with top includes, maybe you people can find different problems.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:nuke(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 415.6206,2533.7751,19.1484))
{
if (gTeam[playerid] == 1)
{
ShowMenuForPlayer(NukeMenu,playerid);
}
}
return 1;
}
CMD:duel1(playerid, params[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined (/duel1)",pName);
SendClientMessageToAll(orange ,string);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(spawnduel1));
SetPlayerPos(playerid, spawnduel1[rand][0],spawnduel1[rand][1], spawnduel1[rand][2]);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 4, 1);
return 1;
}
CMD:duel2(playerid, params[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined (/duel2)",pName);
SendClientMessageToAll(orange ,string);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(spawnduel2));
SetPlayerPos(playerid, spawnduel2[rand][0],spawnduel2[rand][1], spawnduel2[rand][2]);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 27, 999);
return 1;
}
CMD:duel3(playerid, params[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined (/duel3)",pName);
SendClientMessageToAll(orange ,string);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(spawnduel3));
SetPlayerPos(playerid, spawnduel3[rand][0],spawnduel3[rand][1], spawnduel3[rand][2]);
GivePlayerWeapon(playerid, 34, 999);
GivePlayerWeapon(playerid, 31, 999);
return 1;
}
CMD:duel4(playerid, params[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined (/duel4)",pName);
SendClientMessageToAll(orange ,string);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(spawnduel4));
SetPlayerPos(playerid, spawnduel4[rand][0],spawnduel4[rand][1], spawnduel4[rand][2]);
GivePlayerWeapon(playerid, 28, 999);
GivePlayerWeapon(playerid, 26, 999);
return 1;
}
CMD:duel5(playerid, params[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined (/duel5)",pName);
SendClientMessageToAll(orange ,string);
ResetPlayerWeapons(playerid);
new rand = random(sizeof(spawnduel5));
SetPlayerPos(playerid, spawnduel5[rand][0],spawnduel5[rand][1], spawnduel5[rand][2]);
GivePlayerWeapon(playerid, 9, 1);
return 1;
}
CMD:rules(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Server rules", "No cheats/hacks/cleo mods\n Respect players and admins\n Do not impersonating or wearing [DOK] tag\n No flood/spam\n No racism/nacism/insults/flame wars\n Sawnoffs bugs are forbidden(only c bug allowed)\n No carpark/carkill/helikill/driveby/spawnkill\n If you see bug, you must report it!\n Use /report id reason, dont talk about hacker in public chat.\n Do not abuse battle vehicles\n Turfs/stats rig are forbidden","Agree","");
return 1;
}
CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
}
}
CMD:dokopen(playerid, params[])
{
if(IsPlayerLuxAdminLevel(playerid,4))
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, -305.10000000,1507.40000000,74.40000000))
{
MoveObject(dokgate1, -309.999,1507.399, 74.4, 3.5);
MoveObject(dokgate2, -295.099,1507.399 ,74.4, 3.5);
SetTimer("closedok", 10000, false);
return 1;
}
}
}
CMD:vipopen(playerid, params[])
{
if(IsPlayerVipType(playerid, 1))
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -69.9,1519.09,14.6))
{
MoveObject(VIPGate1, -69.5,1530.4,14.6, 3.5);
SetTimer("closevip", 10000, false);
return 1;
}
}
}
CMD:dokcopen(playerid, params[])
{
if(IsPlayerLuxAdminLevel(playerid,4))
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -343.40000000,1534.90000000,76.40000000))
{
MoveObject(DCDOK, -343.399, 1534.899, 79.0, 3.5);
SetTimer("closedokclub", 10000, false);
return 1;
}
}
}
CMD:suicide(playerid, params[])
{
if (gTeam[playerid] == 2)
{
SendClientMessage(playerid, grey, "For our win... ^^");
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 0, 20.0);
CreateExplosion(x, y, z, 9, 20.0);
}
return 1;
}
And yes i got everything set up like it should be.