[HELP] 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: [HELP] Events (
/showthread.php?tid=143282)
[HELP] Events -
andershh - 22.04.2010
How can i make a command like this,
and
Like it makes a text popup to everyone and says this
Quote:
An event has been started by an Admin. /Joinevent to join it.
|
And then it teleports your to somewhere etc.
If someone know how to make it i would be very thankfull.
Re: [HELP] Events -
[KMA]DlennartD - 16.07.2010
Would be nice to have something like this in a filterscript, I can't find it so far but I keep searching.
Re: [HELP] Events -
Betamaster - 17.07.2010
If you can't find a script already written for what you want you can either write your own script from scratch or grab another script and modify it to satisfy your needs. Your best bet is finding filterscripts for things like races and deathmatches and then modify these for your event system.
Re: [HELP] Events -
Hamza' - 17.07.2010
pawn Код:
new Float:P, Float:T, Float:J;
if(strcmp(cmdtext,"/startevent", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
GetPlayerPos(playerid, P, T, J);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has just started the event, you can join this event, type /joinevent", name );
SendClientMessageToAll(0xFFFF00AA, string);
}
return 1;
}
if(strcmp(cmdtext,"/joinevent", true) == 0)
{
SetPlayerPos(playerid, P, T, J+4);
else
SendClientMessage(playerid, 0xFFFF00AA, " This event is locked ");
return 1;
}
if(strcmp(cmdtext,"/lockevent", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has just locked the event", name );
SendClientMessageToAll(0xFFFF00AA, string);
}
return 1;
}
To be honest, noone would script for you, but here some help, now you have to do many of thing such as "locking the event so players won't use /joinevent, etc
Re: [HELP] Events -
Kar - 17.07.2010
bit of help to hamza code maybe try making the event first then add what he did then make 2 new variables
like if(playerinfo)locked = 0 bla bla bla and playerinfounlocked
playerinfo started and maybe ended