- 0
Ink o favoare?
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
TeddyStar
Salut mai cer ink o favoare la /stunt event ce tre sa mai fie adaugat ?
am astea:
[pawn]forward IsAnNFSCar(carid);
public IsAnNFSCar(carid)
{
for(new i = 0; i < sizeof(nfsc); i++)
{
if(carid == nfsc) return 1;
}
return 0;
}
forward IsAnNRGCar(carid);
public IsAnNRGCar(carid)
{
for(new i = 0; i < sizeof(nrgc); i++)
{
if(carid == nrgc) return 1;
}
return 0;
}
forward StartNewNRGEvent();
public StartNewNRGEvent()
{
NRGStarted = 1;
new str[128];
new rand = random(sizeof(NRGStunt));
CashboxValue = MinCashboxValue+random(MaxCashboxValue-MinCashboxValue);
CreatePickup(1210, 3, NRGStunt[rand][0], NRGStunt[rand][1], NRGStunt[rand][2],-999);
NRGStuntX = NRGStunt[rand][0];
NRGStuntY = NRGStunt[rand][1];
NRGStuntZ = NRGStunt[rand][2];
format(str, 128, "{D40000}Stunt event {FFFFFF}a inceput,intra la event,ajungi la checkpoint si castigi {FF9900}$%d.", CashboxValue);
SendClientMessageToAll(COLOR_WHITE, str);
SendClientMessageToAll(COLOR_WHITE, "Foloseste {D40000}/stuntevent{FFFFFF} pentru a intra la event!");
SendClientMessageToAll(COLOR_WHITE, "Aveti la dispozitie {FF9900}15 minute{FFFFFF} sa ajungeti la checkpoint.");
//SetTimer("EndNRGEvent", 6000000, 0);
}
forward EndNRGEvent();
public EndNRGEvent()
{
if(NRGStarted == 1)
{
NRGStarted = 0;
new str[128];
format(str, 128, "Nimeni nu a ajuns la checkpoint-ul de la {FF9900}stunt event!", CashboxValue);
SendClientMessageToAll(COLOR_WHITE, str);
SendClientMessageToAll(COLOR_WHITE, "Un nou event va incepe in {FFFFFF}60 minute.");
}
else if(NRGStarted == 0)
{
return 1;
}
return 0;
}
public IsAnAmbulance(carid)
{
for(new i = 0; i < sizeof(ambcar); i++)
{
if(carid == ambcar) return 1;
}
return 0;
}
public IsATruck(carid)
{
if(carid==86||carid==89)
{
return 1;
}
return 0;
}[/pawn]
3 answers to this question
Recommended Posts