[HELP] Events
#1

How can i make a command like this,
Quote:

/startevent

and
Quote:

/lockevent

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.
Reply
#2

Would be nice to have something like this in a filterscript, I can't find it so far but I keep searching.
Reply
#3

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.
Reply
#4

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
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)