[Tool/Web/Other] Generators Web [FeK]Squad
#8

Code of Racing | Is PHP

PHP Code:
<?php
$cord1 
$_POST["ucord"];
$cord2 $_POST["pcord"];
$cord3 $_POST["rcord"];
$comando $_POST["command"];
$checktotais $_POST["checks"];
$exp explode("\n"$cord3);
$format "";
foreach(
$exp as $linha)
{        
    
$format .= "{ $linha },";
}
echo 
"
Cуdigo Gerado:
<textarea NAME=dkn>
//- www.feksquad.blogspot.com -//
//- Race Creator in PHP By DraKiNs -//
#include <a_samp>
#define TOTAIS_CHECKS 
$checktotais
new Stats[MAX_PLAYERS];
new bool:PlayerRa[500];
new Float:Checkpoints[TOTAIS_CHECKS][3] =
{
     { 
$cord2 },
      
$format
     { 
$cord1 }
     
};
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, \"
$comando\", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, \"SERVER: Vocк foi para o Race\");
        PlayerRa[playerid] = true;
        SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[Stats[playerid]][0], Checkpoints[Stats[playerid]][1], Checkpoints[Stats[playerid]][2], Checkpoints[Stats[playerid]+1][0], Checkpoints[Stats[playerid]+1][1], Checkpoints[Stats[playerid]+1][2], 10);
        Stats[playerid]++;
        return true;
    }
    return false;
}
public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerRa[playerid] == true)
    {
        Stats[playerid]++;
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid, 0, Checkpoints[Stats[playerid]][0], Checkpoints[Stats[playerid]][1], Checkpoints[Stats[playerid]][2], Checkpoints[Stats[playerid]+1][0], Checkpoints[Stats[playerid]+1][1], Checkpoints[Stats[playerid]+1][2], 10);
    }
    if(Stats[playerid] == TOTAIS_CHECKS-1 && PlayerRa[playerid] == true)
    {
        DisablePlayerRaceCheckpoint(playerid);
        SetPlayerRaceCheckpoint(playerid,1, Checkpoints[Stats[playerid]][0], Checkpoints[Stats[playerid]][1], Checkpoints[Stats[playerid]][2], Checkpoints[Stats[playerid]+1][0], Checkpoints[Stats[playerid]+1][1], Checkpoints[Stats[playerid]+1][2], 10);
          SendClientMessage(playerid, 0xFFFFFFFF, \"SERVER: Vocк esta quase acabando a corrida!!\");
    }
    if(Stats[playerid] == TOTAIS_CHECKS && PlayerRa[playerid] == true)
    {
        PlayerRa[playerid] = false;
        Stats[playerid] = 0;
        SendClientMessage(playerid, 0xFFFFFFFF, \"SERVER: Vocк acabou o Race parabйns\");
        DisablePlayerRaceCheckpoint(playerid);
    }
    return true;
}
</textarea>"
;
Reply


Messages In This Thread
Generators Web [FeK]Squad - by ipsBruno - 03.11.2010, 01:18
Re: Generators Web [FeK]Squad - by X35B - 03.11.2010, 06:16
Re: Generators Web [FeK]Squad - by royal_king - 03.11.2010, 06:32
Re: Generators Web [FeK]Squad - by FujiNNN - 03.11.2010, 20:56
Re: Generators Web [FeK]Squad - by ipsBruno - 05.11.2010, 13:06
Respuesta: Generators Web [FeK]Squad - by ipsBruno - 17.11.2010, 01:27
Re: Generators Web [FeK]Squad - by DiddyBop - 19.11.2010, 01:32
Respuesta: Generators Web [FeK]Squad - by ipsBruno - 20.11.2010, 00:38
Re: Generators Web [FeK]Squad - by DiddyBop - 20.11.2010, 16:16
Re: Generators Web [FeK]Squad - by SlashPT - 20.11.2010, 16:38
Re: Generators Web [FeK]Squad - by ipsBruno - 30.11.2010, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)