kako event?

Započeo Kort!NuZ, Jul 28, 2010, 14:09:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo ljudi hteo sam da napravim jedan event pickup car i tako to
sve to mogu samo neznam jedno

napravio sam da kad ukucaju /je ili /joine ili /joinevent da im pise Prijavili ste se za event, cekajte da istece vreme i admin ce vas teleportovati. to ok sve je to ok samo imam jedno pitanje

kako da napravim da kad ukucam  /gete (/geteventpeoples) da teleporta sve koji si ukucali /je a evo komande

dcmd_gete(playerid,params[])
{
    #pragma unused params
if(AccInfo[playerid][Level] >= 4)
{
SendCommandToAdmins(playerid,"GetAll");
new Float:x,Float:y,Float:z, interior = GetPlayerInterior(playerid);
    GetPlayerPos(playerid,x,y,z);
    for(new i = 0; i < MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z);
SetPlayerInterior(i,interior);
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has Teleported all players -|", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 5);
}


molio bi da mi date to sa PlayerInfp[playerid][pEvent]

hvala
Poslednja Izmena: Jul 28, 2010, 14:10:06 POSLE PODNE od [TMS]Christian Bojic[TMS]


dcmd_gete(playerid,params[])
{
   #pragma unused params
if(AccInfo[playerid][Level] >= 4)
{
SendCommandToAdmins(playerid,"GetAll");
new Float:x,Float:y,Float:z, interior = GetPlayerInterior(playerid);
    GetPlayerPos(playerid,x,y,z);
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel] && PlayerInfo[i][pEvent] >= 1)
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z);
SetPlayerInterior(i,interior);
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has Teleported all players -|", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 5);
}


Prepodstavio sam da ako igrac ude u event da se pEvent promjeni unesto iznad 0, a ako nije u eventu onda je 0.
Poslednja Izmena: Jul 28, 2010, 14:51:49 POSLE PODNE od LordShigi


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji

Citat: LordShigi poslato Jul 28, 2010, 14:46:26 POSLE PODNE

dcmd_gete(playerid,params[])
{
    #pragma unused params
if(AccInfo[playerid][Level] >= 4)
{
SendCommandToAdmins(playerid,"GetAll");
new Float:x,Float:y,Float:z, interior = GetPlayerInterior(playerid);
    GetPlayerPos(playerid,x,y,z);
    for(new i = 0; i < MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel] && PlayerInfo[i][pEvent] >= 1)
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerPos(i,x+(playerid/4)+1,y+(playerid/4),z);
SetPlayerInterior(i,interior);
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has Teleported all players -|", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 5);
}


Prepodstavio sam da ako igrac ude u event da se pEvent promjeni unesto iznad 0, a ako nije u eventu onda je 0.

thx , sve sam znao i /joinevent da mu promeni pEvent na 1 ali ti si mi najvise pomogao za /gete ;)

Samo. TI si stavio da se pEvent sprema u fajl ne? Ako jesi onda složi dok se igrač poveže na server da mu pEvent stavi na 0 inace ce biti bugova.


RESPECT 4 EVER: John, GLC,bAndzi, Nikola, Sop, Zoki, Bruno_Venuti, Mele, Luka P,ExtremePower,Wang(neki kineski frajer)

NAJBOLJI CITATI:
Citat: [GF]Alive poslato Jun 24, 2010, 18:20:19 POSLE PODNE
Paizte ljud mozda je KayLoger! ! !
MOJI RADOVI:
[FS]Trofeji