help on event
#1

Hey guys I started makin some events for my server and i was wondering how i would make a time that once i started the event with /derbyevent it counts down from 1 min then starts .also i was wondering how i could make this so if there car catches fire and the blow up there out and the last one left will win and get money heres my code so far


COMMAND:joinderby(playerid,params[])
{
#pragma unused params
{
if(Event[playerid] == 0) return SendClientMessage(playerid, red, "The Event Is Not Open To Public Yet.!");
GivePlayerMoney(playerid, -500);
SetPlayerPos(playerid, -1345.6353,936.1618,1036.3716);
SetPlayerInterior(playerid, 7);
SetPlayerInterior(playerid, 15);
GameTextForPlayer(playerid, "~w~] Welcome To The The Track The Derby Will Start Soon ]", 9000, 5);
ResetPlayerWeapons(playerid);
if(GetPlayerState(playerid) == 2) {
SetVehiclePos(GetPlayerVehicleID(playerid), -1345.6353,936.1618,1036.3716);
} else SetPlayerPos(playerid, -1345.6353,936.1618,1036.3716);
return 1;
}
}
COMMAND:derbyevent(playerid,params[])
{
#pragma unused params
if(level[playerid] >= 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
Event[i] = 1;
GameTextForAll("Demolition Derby Starting Soon /joinderby costs $500 To Join!", 9000, 3);
return 1;
} else return SendClientMessage(playerid, red, "Error: You are either not a admin or you are not a admin with the correct level.");
}
Reply
#2

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)