Quote:
Originally Posted by Sniper Kitty
|
Wtf you talking I have problem with spawn,cant spawn ..I have in ongamemodint addplayerclass -.-
Код:
public OnGameModeInit()
{
Textovi = TextDrawCreate(3.3750, 430.0, "Za listu online admina napisi /admins");
TextDrawTextSize(Textovi,629.000000,2.000000);
TextDrawFont(Textovi,1);
TextDrawLetterSize(Textovi,0.499999,1.399999);
TextDrawColor(Textovi,0x00FF6EFF);
TextDrawSetProportional(Textovi,1);
SetTimer("Textovi2",15000,true);
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
// Ballas
AddPlayerClass(104,1979.1917,-1222.0964,25.1824,97.3597,0,0,0,0,0,0); // 104=Skin , 1979.1917 =X ect....
// Groves
AddPlayerClass(107,2508.5671,-1673.6665,13.3793,86.2585,0,0,0,0,0,0);
return 1;
}
And this is my command about choosing skin (dont work spawn button :S)
Код:
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = BALLAS;
GameTextForPlayer(playerid,"~p~Ballas",3000,5); // This will show up an Text , when you select your class
SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
SetPlayerFacingAngle(playerid,122.4500);
SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
}
else if(classid == 1)
{
gTeam[playerid] = GROVES;
GameTextForPlayer(playerid,"~g~Grove Street Famlilys",3000,5);
SetPlayerPos(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerCameraPos(playerid,2507.0615,-1674.3574,13.3732);
SetPlayerCameraLookAt(playerid,2500.6060,-1672.1453,13.3512);
SetPlayerFacingAngle(playerid,252.4717);
SetPlayerColor(playerid,0x55FF00FF);
}
SpawnPlayer(playerid);
}