27.07.2009, 20:27
Hello, i have this peace of code
I want to use the horn button, and not write - /gateopen, what should i change?
Код:
if(!strcmp(cmdtext, "/gateopen", true)) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3) { if (PlayerToPoint(15, playerid,1589.053344,-1638.123168,14.122960)) { MoveObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8); SetTimer("GateClose", 12000, 0); SendClientMessage(playerid, COLOR_BLUE," Āīљīņą ēąźљīћņń˙ чељеē 7 ńеźуķд."); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s īņźљūė āīљīņą.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);