03.12.2009, 14:53
Quote:
Originally Posted by buonggiorno
can i get help here?
i do next 1. i put MidoStream.inc into pawno folder includes. 2. open MidoStream.pwn and compile it 3. than i define new object in my case its pgate and i put it like this Code:
new lvgate; new pgate; => here is my gate new sajgate; new ygate; new gLastCar[301]; new gOoc[MAX_PLAYERS]; here is code Code:
ygate = CreateStreamObject(980,1245.712,-773.096,93.252,0.0,0.0,0.0); hitmangate = CreateStreamObject(980,1027.593,-369.597,75.500,0.0,0.0,0.0); sajgate = CreateStreamObject(976,-1534.499,482.124,6.349,0.0,0.0,0.0); pgate = CreateStreamObject(986,818.433,-2517.337,8.556,0.0,0.0,0.0); => this is my gate Code:
public OnPlayerDisconnect(playerid) { MidoStreamDisconnect(playerid); => i add like this, i didnt shure is this ok gActivePlayers[playerid]--; numplayers--; PlayerInfo[playerid][pAdjustable] = 1; OnPlayerUpdate(playerid); for(new i = 0; i < MAX_PLAYERS; i++) { Code:
if (strcmp(cmdtext, "/pot", true)==0) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { MoveStreamObject(pgate,818.433,-2517.337,1.256, 8.0); SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN."); } else return SendClientMessage(playerid, COLOR_GREEN, "NOT A COP."); } if (strcmp(cmdtext, "/pza", true)==0) { if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { MoveStreamObject(pgate,818.433,-2517.337,8.556, 8.0); SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSE"); } else return SendClientMessage(playerid, COLOR_GREEN, "NOT A COP."); } can somebody help me with this? |
Stop spamming,goddamn it.