All pastes #768351 Raw Edit

SaiaGo :X

public cpp v1 · immutable
·published 2007-11-10 15:24 UTC
rendered paste body
public OnPlayerEnterCheckpoint(playerid){    new driftid = GetCurrentDrift();    if (IsPlayerInDrift[playerid][driftid])    {		DisablePlayerCheckpoint(playerid);		CurrentCheckpoint[playerid]++;		new a_debug[256];		format(a_debug, 256, "PlayerID: [ %d ] Checkpoint: [ %d ]", playerid, CurrentCheckpoint[playerid]);		SendClientMessageToAll(COLOR_WHITE, a_debug);		new C_CP = CurrentCheckpoint[playerid];		SetPlayerCheckpoint(playerid, Drift1[C_CP][0], Drift1[C_CP][1], Drift1[C_CP][2], Drift1[C_CP][3]);		new gText[256]; format(gText, 256, "~g~%d ~b~/ ~g~%d", CurrentCheckpoint[playerid], MaxCPS[driftid]);		GameTextForPlayer(playerid, gText, 15000, 6);		if (CurrentCheckpoint[playerid] == MaxCPS[driftid])		{	    	format(a_debug, 256, "DriftID: [ %d ] MaxDrift%d CPS: [ %d ]", driftid, driftid, MaxCPS[driftid]);			SendClientMessageToAll(COLOR_WHITE, a_debug);			if (Winner[driftid] == -1) return EndDrift(driftid, playerid);			else {				DisablePlayerCheckpoint(playerid);				JoinedDrift[playerid][driftid] = 0;				CurrentCheckpoint[playerid] = 0;				IsPlayerInDrift[playerid][driftid] = 0;				GameTextForPlayer(playerid, "~r~You didn't won the drift!", 5000, 6);			}		}	}	return true;}