29.02.2012, 20:26
i made this gate command but it doesn't do anything
This is not the first gate i have made i have many other and they all work only this one doesn't work i don't know whats the problem i have the
and
i also have assigned the objects like
But i when i go to the gate and Type /yakso nothing happens i have a same command like this for another 2 gates and they work
Код:
if(strcmp(cmd,"/yaksc",true)==0) { if(IsPlayerInRangeOfPoint(playerid, 7.0,1812.69995117,-2072.80004883,15.30000019)) if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { MoveObject(yskladvlez,1812.69995117,-2072.80004883,8.50000019, 5.000); SendClientMessage(playerid, COLOR_YELLOW, "Ja otvori vratata na skladot."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Ja otvori vratata na skladot.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_YELLOW, "Ne si clen."); } return 1; } if(strcmp(cmd,"/yakso",true)==0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 1812.69995117,-2072.80004883,15.30000019)) if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { MoveObject(yskladvlez,1812.69995117,-2072.80004883,15.30000019, 5.000); SendClientMessage(playerid, COLOR_YELLOW, "Ja zatvori vratata na skladot."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Ja zatvori vratata na skladot.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_YELLOW, "Ne si clen ."); } return 1; } if(strcmp(cmd,"/yaks1o",true)==0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 1789.90002441,-2030.09997559,11.00000000)) if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { MoveObject(ysklad, 1789.90002441,-2030.09997559,5.00000000, 5.000); SendClientMessage(playerid, COLOR_YELLOW, "Go otvoti skladot."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Go otvori skladot.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_YELLOW, "Ne si clen."); } return 1; } if(strcmp(cmd,"/yaks1c",true)==0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 1789.90002441,-2030.09997559,11.00000000)) if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { MoveObject(ysklad, 1789.90002441,-2030.09997559,11.00000000, 5.000); SendClientMessage(playerid, COLOR_YELLOW, "Go zatvori Skladot."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s Go zatvori skladot.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else { SendClientMessage(playerid, COLOR_YELLOW, "Ne si clen ."); } return 1; }
Код:
new ysklad;
Код:
new yskladvlez;
Код:
ysklad = CreateObject...