rendered paste body#include <a_samp>
#define CHECKPOINT_RACE1 33
new gPlayerCheckpointStatus[MAX_PLAYERS];
main()
{
print("\n----------------------------------");
print(" This is a blank GameModeScript");
print("----------------------------------\n");
}
public OnGameModeInit()
{
print("GameModeInit()");
SetGameModeText("Blank Script");
//Savepositionen für Test-race spieler
AddPlayerClass(0,-2681.5554,1263.3470,55.6758,181.8250,0,0,0,0,0,0); //
AddPlayerClass(0,-2681.6313,1259.2601,55.6780,3.3917,0,0,0,0,0,0); //
AddPlayerClass(0,-2681.5645,1260.6200,55.6946,4.9583,0,0,0,0,0,0); //
//autos dafür
AddStaticVehicle(451,-2668.4241,1255.8691,55.1366,358.0507,16,16); //
AddStaticVehicle(451,-2676.8977,1254.4877,55.1368,1.6388,16,16); //
AddStaticVehicle(451,-2686.3494,1253.9364,55.1372,2.3200,16,16); //
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
printf("OnPlayerRequestClass(%d, %d)", playerid, classid);
SetPlayerPos(playerid, -2681.5554,1263.3470,55.6758);
SetPlayerCameraPos(playerid, -2681.6313,1259.2601,55.6780);
SetPlayerCameraLookAt(playerid, -2681.5645,1260.6200,55.6946);
return 1;
}
public OnGameModeExit()
{
print("GameModeExit()");
return 1;
}
public OnPlayerConnect(playerid)
{
printf("OnPlayerConnect(%d)", playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
printf("OnPlayerDisconnect(%d)", playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
printf("OnPlayerSpawn(%d)", playerid);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
printf("OnPlayerDeath(%d, %d, %d)", playerid, killerid, reason);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
printf("OnVehicleSpawn(%d)", vehicleid);
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
printf("OnVehicleDeath(%d, %d)", vehicleid, killerid);
return 1;
}
public OnPlayerText(playerid)
{
printf("OnPlayerText(%d)", playerid);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/mycommand", true)==0)
{
/* Do something here */
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
printf("OnPlayerInfoChange(%d)");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
printf("OnPlayerEnterVehicle(%d, %d, %d)", playerid, vehicleid, ispassenger);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
printf("OnPlayerExitVehicle(%d, %d)", playerid, vehicleid);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
printf("OnPlayerStateChange(%d, %d, %d)", playerid, newstate, oldstate);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
switch (gPlayerCheckpointStatus[playerid]) {
case 1:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 2:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 3:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 4:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 5:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 6:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 7:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 8:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 9:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 10:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 11:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 12:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 13:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 14:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 16:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 17:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 18:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 19:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 20:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 21:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 22:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 23:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 24:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 25:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 26:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 27:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 28:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 29:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 30:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 31:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
switch (gPlayerCheckpointStatus[playerid]) {
case 32:
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_RACE1;
}
default:
{
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
printf("OnPlayerLeaveCheckpoint(%d)", playerid);
return 1;
}