#include <a_samp>
//-------------------------
#define FARBE_GRAU 0xAFAFAFAA //grey
#define FARBE_GRÜN 0x33AA33AA //green
#define FARBE_ROT 0xAA3333AA //red
#define FARBE_GELB 0xFFFF00AA //yellow
#define FARBE_WEISS 0xFFFFFFAA //white
#define FARBE_DUNKELBLAU 0x2641FEAA //darkblue
#define FARBE_HELLBLAU 0x33CCFFAA //bright blue
//-------------------------
new derby_count;
new IsDerbyAllowed;
enum espawn
{
Float:ex,
Float:ey,
Float:ez,
interior,
vehicle,
}
new spawns[][espawn] = {
{-1485.4844,1037.1923,1038.1127, 15, 504},
{-1479.8419,1040.9438,1038.1693, 15, 504},
{-1491.8146,1032.6804,1037.9775, 15, 504},
{-1496.4209,1028.1976,1037.9799, 15, 504},
{-1501.5582,1024.1018,1037.9232, 15, 504},
{-1504.5629,1019.4431,1037.8496, 15, 504},
{-1507.5671,1014.1100,1037.7434, 15, 504},
{-1509.8252,1008.6966,1037.6832, 15, 504},
{-1511.7245,1002.9764,1037.5858, 15, 504},
{-1512.5612,997.1481,1037.4984, 15, 504},
{-1512.1660,990.6923,1037.3927, 15, 504},
{-1510.9679,982.6587,1037.2588, 15, 504},
};
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s hat den Server betreten.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Error)", pName);
case 1: format(string, sizeof(string), "%s hat den Server verlassen. (Ausgeloggt)", pName);
case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/Ban)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
}
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmdtext, "/derbyopen", true) == 0) {
if(IsPlayerAdmin(playerid))
{
IsDerbyAllowed = 1;
GameTextForAll("~r~Derby Stadion ~n~~n~~r~ist Ab Jetz Geöffnet",3000,6);
}
return 1;
}
if(strcmp(cmd, "/derby", true) == 0) {
if(IsDerbyAllowed == 1)
{
new pname[256];
if(derby_count == 12) return 1;
derby_count++;
SetPlayerPos(playerid, spawns[ex], spawns[ey], spawns[ez]);
SetPlayerInterior(playerid, spawns[interior]);
PutPlayerInVehicle(playerid, spawns[vehicle], 0);
GetPlayerName(playerid, pname, 256);
format(string, sizeof(string), "%s Hat das Derby Stadion Betreten", pname);
SendClientMessageToAll(FARBE_GELB, string);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, FARBE_HELLBLAU, "Zum Verlassen gib /leave ein!");
}else{
if(IsDerbyAllowed == 0)
SendClientMessage(playerid, FARBE_ROT, "Das Derby Stadion ist Geschlossen");
}
return 1;
}
if(strcmp(cmd, "/derbyclose", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
IsDerbyAllowed = 0;
GameTextForAll("~r~Derby Stadion~n~~n~~r~ist Jetz Geschlossen",3000,6);
}
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
C:\Users\Dominik\Desktop\Recon\razorsfreeroam\tt.pwn(37) : error 029: invalid expression, assumed zero
C:\Users\Dominik\Desktop\Recon\razorsfreeroam\tt.pwn(37) : error 008: must be a constant expression; assumed zero
C:\Users\Dominik\Desktop\Recon\razorsfreeroam\tt.pwn(152) : error 035: argument type mismatch (argument 2)
C:\Users\Dominik\Desktop\Recon\razorsfreeroam\tt.pwn(153) : error 035: argument type mismatch (argument 2)
C:\Users\Dominik\Desktop\Recon\razorsfreeroam\tt.pwn(154) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.