SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 11/03/2010, 07:52 PM   #1
[SF]RobMob
Big Clucker
 
Join Date: Oct 2009
Location: Canada
Posts: 172
Reputation: 0
Default help on event

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.");
}
[SF]RobMob is offline  
Old 12/03/2010, 11:46 AM   #2
[SF]RobMob
Big Clucker
 
Join Date: Oct 2009
Location: Canada
Posts: 172
Reputation: 0
Default Re: help on event

[SF]RobMob is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with /event cmd Razvann Help Archive 9 23/01/2011 03:28 PM
Event! ColdXX Help Archive 5 29/05/2010 01:35 PM
event info godsave Română/Romanian 19 24/04/2010 12:32 PM
/event problem. Razvann Help Archive 8 27/02/2010 04:49 PM


All times are GMT. The time now is 04:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.