Script that admin can create events... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script that admin can create events... (
/showthread.php?tid=121802)
Script that admin can create events... -
svorpyx - 18.01.2010
Does someone knows a script which admins can create events with?
Please no DCMD,
Thanks,
Max
Re: Script that admin can create events... -
Cry_Wolf - 18.01.2010
please define "events", dm, races, stunts?
BTW:
http://forum.sa-mp.com/index.php?action=search
Re: Script that admin can create events... -
lexidrifter - 18.01.2010
im looking for the same thing!!
Re: Script that admin can create events... -
svorpyx - 18.01.2010
already searced...
I'm looking for, that they can create:
dm events
race events
ehm, lottery events
etc
Re: Script that admin can create events... -
Cry_Wolf - 18.01.2010
search it.
Re: Script that admin can create events... -
svorpyx - 18.01.2010
Quote:
Originally Posted by Cry_Wolf
search it.
|
i did,
read my previous post...
Re: Script that admin can create events... -
svorpyx - 20.01.2010
anyone?
Re: Script that admin can create events... -
Miguel - 20.01.2010
http://forum.sa-mp.com/index.php?topic=144062.0
Re: Script that admin can create events... -
svorpyx - 20.01.2010
oh comon, noone's gonna reply on me there...
Re: Script that admin can create events... -
Lajko1 - 20.01.2010
its hard to tell but i think it should go like this
make veriable or what ever they are like
Код:
new bool:DmEventOn[MAX_PLAYERS];
make the command:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmd, "/dmonl", true) == 0)
{
//here u should give if player is admin level = 1338,if its not there come error message ... in game ofc :D
//and what code should do ofc here u post the fallowing veriable:
DmEventOn = True;
}
return 1;
}
return 0;
}
and make another command for joining events ...
if (strcmp(cmd, "/joindm", true) == 0)
{
if(DmEventOn[playerid] == True)
{
//SetPlayerPos
//SetPlayerFacingAngle
// GivePlayerWeapons
//SetPlayerHealth
//SendClientMessage
// more and more
return 1;
}
if(DmEventOn[playerid] == false)
{
SendClientMessage(playerid,color,"The Dead Match Event Is Not Avaible ATM); // or something like this
return 1;
}
return 0 ;
}
it should be something like this this is example what i mean, codes are ofc not right, take this just for example i think if u know how to script this it should work