01.03.2012, 18:49
how to make hats Command /оpen but I just can not open and the key to give to others and they can open and close
if(strcmp(cmdtext,"/opengate", true) == 0)
{ if (gTeam[playerid] == TEAM_GROVE) { if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436)) { MoveObject(hqgate, 289.919067, -1547.427734, 27.193420, 1.500000); return 1; } } } if(strcmp(cmdtext,"/closegate", true) == 0) { if (gTeam[playerid] == TEAM_GROVE) { if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436)) { MoveObject(hqgate, 283.870544, -1543.398804, 27.193420, 1.500000); return 1; } } } here and how to make a boss that only one player that you can open the gate |