sssa
Ученик
Добавил /deagle зону 10 рандомных спавнов но после смерти дигл не выдается
сама команда:
Помогите разобраться с меня "+".
---------- Post added at 12:10 ---------- Previous post was at 11:13 ----------
====== UP
---------- Post added at 12:14 ---------- Previous post was at 12:10 ----------
====== UP
сама команда:
PHP:
CMD:deagle(playerid,params[])
{
if(PlayerInfo[playerid][pLogin] == 0) SCM(playerid, COLOR_LIGHTRED, "Необходимо залогинется"),KickWithMessage(playerid);
if(PlayerInfo[playerid][pZone] == 1) SCM(playerid, COLOR_LIGHTRED, "Вы в Parkour зоне введите /exit, а потом новую зону.");
if(PlayerInfo[playerid][pZone] == 3) SCM(playerid, COLOR_LIGHTRED, "Вы в BMX зоне введите /exit, а потом новую зону.");
if(PlayerInfo[playerid][pZone] == 2) SCM(playerid, COLOR_LIGHTRED, "Вы уже в Deagle зоне.");
if(PlayerInfo[playerid][pZone] == 0)
{
PlayerInfo[playerid][pZone] = 2;
switch(random(10))
{
case 0: SetPlayerPos1(playerid,1930.0961,-1210.8590,20.0234);
case 1: SetPlayerPos1(playerid,1967.0887,-1175.8877,20.0307);
case 2: SetPlayerPos1(playerid,2032.9075,-1216.2458,22.5381);
case 3: SetPlayerPos1(playerid,2036.6768,-1177.5686,22.8053);
case 4: SetPlayerPos1(playerid,1985.8501,-1150.8831,21.1185);
case 5: SetPlayerPos1(playerid,1944.0369,-1150.0901,22.4961);
case 6: SetPlayerPos1(playerid,1908.3546,-1175.7664,23.4496);
case 7: SetPlayerPos1(playerid,1901.2156,-1231.8053,15.8278);
case 8: SetPlayerPos1(playerid,1931.8923,-1224.7441,20.2165);
case 9: SetPlayerPos1(playerid,1966.2565,-1235.8127,20.0553);
}
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,150);
SCM(playerid, COLOR_LIGHTRED, "Добро пожаловать в Deagle Zone. Вам выдано оружее. Отдыхайте, удачи.");
}
return true;
}
---------- Post added at 12:10 ---------- Previous post was at 11:13 ----------
====== UP
---------- Post added at 12:14 ---------- Previous post was at 12:10 ----------
====== UP
