#define TEAM_RENDOR 0 //Rendõr csapat
public OnGameModeInit() //Skin
{
new gTeam[MAX_PLAYERS];
AddPlayerClass(23,1579.5028,-1635.4249,17.9324,346.9123,3,1,0,0,0,0); // Rendõr
return 1;
}
public OnPlayerRequestClass(playerid, classid) //Skinválasztónál
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_RENDOR;
SetPlayerFacingAngle(playerid, 270);
SetPlayerPos(playerid, 2027.5382,1007.6257,10.8203);
SetPlayerCameraPos(playerid, 2032.6476,1007.6481,10.8203);
SetPlayerCameraLookAt(playerid, 2027.5382,1007.6257,10.8203);
GameTextForPlayer(playerid, \"Rendor\",6000,6);
return 1;
}
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_RENDOR)
{
SetPlayerPos(playerid, 2326.0073,1404.4688,42.8299); //Spawn hely
GivePlayerWeapon(playerid,4,1000); //Fegyver adása
GivePlayerWeapon(playerid,24,1000); //Fegyver adása
GivePlayerWeapon(playerid,26,1000); //Fegyver adása
GivePlayerWeapon(playerid,28,1000); //Fegyver adása
GivePlayerWeapon(playerid,31,1000); //Fegyver adása
GivePlayerWeapon(playerid,34,1000); //Fegyver adása
GivePlayerWeapon(playerid,46,1); //Fegyver adása
return 1;
}
}
Remélem tudtam segíteni.