Jump to content
  • 0

Comanda /gotoevent


Tibirogamer

Question

3 answers to this question

Recommended Posts

  • 0

Nu este un fs, este o simplă comandă...vrei să meargă doar dacă este activată de un admini?

Ce procesor de comenzi folosești?

36 minutes ago, Tibirogamer said:

Salut,sunt mai nou in scripting si as vrea si eu un FS cu comanda /gotoevent sa te aduca la event comanda sa fie setata de un admin...Cine ma poate ajuta?Va rog

 

 

Edit: nu pot aștepta să intri..

Creezi o nouă variabilă la începutul gm.ului:

new activeazaevent;

CMD:activare(playerid, params[])

{

if(PlayerInfo[playerid] [pAdmin] >= 1)

{

activeazaevent = 1;

SCM(playerid,-1,"Ai activat comanda /gotoevent");

}

else

{

SCM(playerid,-1,"Nu ai gradul de admin necesar pentru a folosi comandă!");

}

return 1;

}

 

Apoi comanda gotoevent:

CMD:gotoevent(playerid, params[])

{

if(activeazaevent == 1)

{

SetPlayerPos(playerid,x,y,z);//pui coordonatele de la event place.

SCM(playerid,-1,"Ai fost teleportat la eventplace");

}

else

{

SCM(playerid,-1,"Comandă gotoevent este momentan dezactivata!");

}

return 1;

}

Edited by DaEdRiC-FoX

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0

Imi da erroare

C:\Users\CV\Desktop\Folder\server meu\gamemodes\gta.pwn(41152) : error 010: invalid function or declaration
C:\Users\CV\Desktop\Folder\server meu\gamemodes\gta.pwn(41162) : error 017: undefined symbol "x"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.