All pastes #579509 Raw Edit

Someone

public text v1 · immutable
·published 2007-06-20 18:15 UTC
rendered paste body
   if (strcmp(cmdtext, "/kart", true)==0)
    {
    if(IsPlayerConnected(playerid))
	{
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
	if (IsPlayerInArea(playerid,-1404.0121,-225.6533,-1394.1226,-160.1958))
	{ 
    if (gCheckTime > 30 || gCheckTime == 0 || IsPlayerAdmin(playerid) == 1)
    {
    if (IsPlayerInArea(i,-1404.0121,-225.6533,-1394.1226,-160.1958))
	{
    gCountdown=6;
    gPosition = 0;
    gTime = 0;
    SendClientMessageToAll(COLOR_GREY, "....");
    racer[i] = 0;
    nascarer[i] = 0;
    karter[i] = 0;
    parer[i] = 0;
    DisablePlayerCheckpoint(i);
    karter[i] = 1;
    gKartProgress[i] = 1;
    SetPlayerCheckpoint(i,gKartCheckpoints[1][0],gKartCheckpoints[1][1],gKartCheckpoints[1][2],gKartCheckpoints[1][3]);
    TogglePlayerControllable(i, 0);
    }
    KillTimer(gCountdowntimer);
    gCountdowntimer=SetTimer("Gettimer", 1000, 1);
    } else {	SendClientMessage(playerid, COLOR_YELLOW, "...");
    } else {
    SendClientMessage(playerid, COLOR_YELLOW, "...");
	}
    }
    }
    return 1;
	}