#include <a_samp>
static gTeam[MAX_PLAYERS],
gPlayerClass[MAX_PLAYERS];
#define TEAM_CIVIL 0
#define TEAM_BUNOZO 1
#define TEAM_SZERELO 2
#define TEAM_RENDOR 3
public OnGameModeInit()
{
AddPlayerClass(71,0.0,0.0,0,0.0,0,0,0,0,0,0);
AddPlayerClass(200,-0.0,0.0,0,0.0,0,0,0,0,0,0);
AddPlayerClass(0,1632.4402,-2143.9746,13.5547,256.5949,0,0,0,0,0,0);
AddPlayerClass(281,1759.0189,-1898.1260,13.5622,266.4503,-1,-1,-1,-1,-1,-1);
}
public OnPlayerSpawn(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
SetPlayerColor(playerid,0x33AA33AA); // Blue
GivePlayerWeapon(playerid, 25, 10000);// fegyvert ad
}
else if(gTeam[playerid] == TEAM_BUNOZO) {
SetPlayerColor(playerid,0x33AA33AA); // Blue
GivePlayerWeapon(playerid, 25, 10000);// fegyvert ad
}
else if(gTeam[playerid] == TEAM_SZERELO) {
GivePlayerWeapon(playerid, 31, 100000);
}
else if(gTeam[playerid] == TEAM_RENDOR) {
GivePlayerWeapon(playerid, 30, 100000);
}
}
stock SetPlayerClass(playerid, classid) {
if(classid == 0) {
gTeam[playerid] = TEAM_CIVIL;
} else if(classid == 1) {
gTeam[playerid] = TEAM_BUNOZO;
} if(classid == 2) {
gTeam[playerid] = TEAM_SZERELO;
} if(classid == 3) {
gTeam[playerid] = TEAM_RENDOR;
}
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, \"~b~Civil\", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, \"~g~Bunozo!\", 500, 3);
}
case 2:
{
GameTextForPlayer(playerid, \"~g~SZERELO\", 500, 3);
}
case 3:
{
GameTextForPlayer(playerid, \"~g~RENDOR\", 500, 3);
}
}
return 1;
}
C:\\Documents and Settings\\Dyross Dark\\Asztal\\gteam2.pwn(48) : error 017: undefined symbol \"SetupPlayerForClassSelection\"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.