07.01.2011, 12:04
What did i do wrong?
I cant spawn...
I cant spawn...
pawn Код:
#include <a_samp>
new gTeam[MAX_PLAYERS];
#define TEAM_NORMAL 1
#define TEAM_CRAZY 2
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by Larsey123");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Test Gamemode");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,1206.9768,-32.5926,1000.9531);
SetPlayerFacingAngle(playerid,249.3010);
SetPlayerCameraPos(playerid,1209.1083,-33.8061,1000.9531);
SetPlayerCameraLookAt(playerid,1206.9768,-32.5926,1000.9531);
switch (classid)
{
case 0:
{
GameTextForPlayer(playerid, "~w~Normal~n~~b~Guy", 3000, 5);
}
case 1:
{
GameTextForPlayer(playerid, "~w~Crazy~n~~b~Guy", 3000, 5);
}
}
return 0;
}
SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_NORMAL;
}
else if(classid == 1)
{
gTeam[playerid] = TEAM_CRAZY;
}
}
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
return 1;
}