Sziasztok
Elhosztam nektek egy Verseny scriptet
Készitette:Graduado_Cabeludo(Én)
Készitési idõ: 15 perc
Letöltési link:
http://www.solidfiles.com/d/d35a527aad/Használjátok egészséggel
//Verseny-By:Graduado_Cabeludo
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA
forward count2();
forward count4();
forward count3();
forward count1();
forward countgo();
forward stop();
new bool:a;
new Float:X, Float:Y, Float:Z;
#else
#endif
////////////////////////////////////////////////////////////////////////////////
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,\"/count\",true) == 0) {
new pName[30];
new string[256];
if (a == false)
{
a = true;
GetPlayerName(playerid, pName, 30);
format(string, 280, \"[Count]:%s El indított egy visszaszámlálást!\", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i, \"~r~-[]5[]-\",1000,4);
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1056,X,Y,Z);
}
SetTimer(\"count4\",1000,0);
SetTimer(\"count3\",2000,0);
SetTimer(\"count2\",3000,0);
SetTimer(\"count1\",4000,0);
SetTimer(\"countgo\",5000,0);
SetTimer(\"stop\",6000,0);
}
else SendClientMessage(playerid, 0xFF9900AA, \"[iNFO]:Ahoz hogy ezt a parancsot használhasd jármûben kelene hogy üljél!\");
return 1;
}
return 0;
}
////////////////////////////////////////////////////////////////////////////////
public count2()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,\"~r~-[]2[]-\",1000,4);
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1056,X,Y,Z);
}
}
////////////////////////////////////////////////////////////////////////////////
public count1()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,\"~r~-[]1[]-\",1000,4);
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1056,X,Y,Z);
}
}
////////////////////////////////////////////////////////////////////////////////
public stop()
{
a = false;
}
////////////////////////////////////////////////////////////////////////////////////
public count3()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,\"~r~-[]3[]-\",1000,4);
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1056,X,Y,Z);
}
}
///////////////////////////////////////////////////////////////////////////////////
public count4()
{
for(new i; i < MAX_PLAYERS; i++) {
GameTextForPlayer(i,\"~r~-[]4[]-\",1000,4);
GetPlayerPos(i,X,Y,Z);
PlayerPlaySound(i,1056,X,Y,Z);
}
}
//--------------------------------------------------------------------------------------------------
public countgo()
{
for(new i; i < MAX_PLAYERS; i++) {
GetPlayerPos(i,X,Y,Z);
GameTextForPlayer(i,\"~g~-[]GO![]- ~r~-[]GO![]- ~y~-[]GO![]-\",1000,4);
PlayerPlaySound(i,1057,X,Y,Z);
}
}