22.06.2013, 01:28
Sorry for bad english, i'm vietnamese
Cuop = Robber
CanhSat = Cop
Sorry about that
i have 2 team is cop and robber but i'm create 2 gate with Multi Map Editor and i want the command open gate of robber, cop can't open, just robber can. and the gate of cop, robber can't open, just cop can open.
how do i do that ?
here my code:
Command:
And my team:
Please help me
Cuop = Robber
CanhSat = Cop
Sorry about that
i have 2 team is cop and robber but i'm create 2 gate with Multi Map Editor and i want the command open gate of robber, cop can't open, just robber can. and the gate of cop, robber can't open, just cop can open.
how do i do that ?
here my code:
Command:
Код:
CMD:gatecuop(playerid, params[]) { ShowPlayerDialog(playerid, 0); return 1; } CMD:gatecanhsat(playerid, params[]) { ShowPlayerDialog(playerid, 1); return 1; }
Код:
public SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { gTeam[playerid] = Cuop; GameTextForPlayer(playerid,"~w~Cuop",3000,5); SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); SetPlayerCameraPos(playerid, -2689.1543, -5.5487, 6.2426); SetPlayerCameraLookAt(playerid, -2688.1479, -5.5264, 6.2776); SetPlayerFacingAngle(playerid,122.4500); SetPlayerColor(playerid,0xA000FFFF); } else if(classid == 1) { gTeam[playerid] = CanhSat; GameTextForPlayer(playerid,"~w~Canh Sat",3000,5); SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512); SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732); SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512); SetPlayerFacingAngle(playerid,252.4717); SetPlayerColor(playerid,0x55FF00FF); } }