Classes Don't show
#1

Well... i Made classed and everything , but when i got to Choose the Class i want ( Team ) , all i see is nothing and down ( Left - Right - Spawn ) , When i click Spwan i spawn with the Ballaz ( First class i made in the GM ) , but the problem that i don't see the skin before i press Spawn , so i wanted to know how to fix this and how to change the back Ground while Choosing the Class and how to put Words ( Text ) above the skin before i choose it
Reply
#2

Quote:
Originally Posted by Mr.Black
Посмотреть сообщение
Well... i Made classed and everything , but when i got to Choose the Class i want ( Team ) , all i see is nothing and down ( Left - Right - Spawn ) , When i click Spwan i spawn with the Ballaz ( First class i made in the GM ) , but the problem that i don't see the skin before i press Spawn
The camera can't stay where player is. But you did this:

PHP код:
SetPlayerPos(playerid1958.37831343.157215.3746);
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746); 
Quote:
Originally Posted by Mr.Black
Посмотреть сообщение
so i wanted to know how to fix this and how to change the back Ground while Choosing the Class
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos

Quote:
Originally Posted by Mr.Black
Посмотреть сообщение
and how to put Words ( Text ) above the skin before i choose it
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    if(
classid == 1
    { 
        
gTeam[playerid] = TEAM_GROVE
        
SetPlayerColor(playeridTEAM_GROVE_COLOR);
        
GameTextForPlayer(playerid"~n~~n~~n~~n~~g~GROOVE"50006);
    }
    else
    {
        
gTeam[playerid] = TEAM_BALLA
        
SetPlayerColor(playeridTEAM_BALLA_COLOR);
        
GameTextForPlayer(playerid"~n~~n~~n~~n~~p~BALLAS"50006);
    }
    return 
1;

Reply
#3

Quote:

#include <a_samp>

#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple

new gTeam[MAX_PLAYERS];

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

public OnGameModeInit()
{
SetGameModeText("L.S.G.W ( Test )");
AddPlayerClass(102,2001.1736,-1122.1942,26.6893,179.8825, 24, 500, 31, 500, 27, 500);
AddPlayerClass(107,2521.5156,-1678.9836,15.4372,92.7751, 24, 500, 31, 500, 27, 500);

//---------------------------------------------Cars----------------------
AddStaticVehicle(567,2469.7935,-1653.6843,13.2708,90.5193,16,16); // Grove Car ne
AddStaticVehicle(550,2499.4294,-1654.7576,13.2485,254.4190,16,16); // Grove Car two
AddStaticVehicle(445,2506.7881,-1678.3098,13.3342,325.9603,16,16); // Grove Car Three
AddStaticVehicle(580,2474.8115,-1680.0529,13.1468,53.0098,16,16); // Grove Car Four
AddStaticVehicle(554,2473.1538,-1692.3916,13.6217,358.9131,16,16); // Grove car Six
AddStaticVehicle(575,2027.4512,-1141.2002,24.2388,268.0392,174,174); // Ballaz car one
AddStaticVehicle(566,1996.3920,-1130.7765,25.2881,268.9091,174,174); // Ballaz car two
AddStaticVehicle(566,2009.3124,-1131.0549,24.9350,270.7833,174,174); // Ballaz car three
AddStaticVehicle(517,2037.6184,-1131.2960,24.1986,268.1283,174,174); // Ballaz car four
AddStaticVehicle(517,1983.9332,-1140.4438,25.6544,270.9725,174,174); // Ballaz car five
AddStaticVehicle(445,2004.6111,-1141.2178,25.1558,269.5776,174,174); // Ballaz car six
AddStaticVehicle(576,2018.9581,-1140.7462,24.4843,267.8231,174,174); // Ballaz car seven
AddStaticVehicle(576,2051.8625,-1120.1655,24.3129,180.2631,174,174); // Ballaz car Eight
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);
if(classid == 1)
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else
{
gTeam[playerid] = TEAM_BALLA;
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
return 1;
}
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
if(classid == 1)
{
gTeam[playerid] = TEAM_GROVE;
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~GROOVE", 5000, 6);
}
else
{
gTeam[playerid] = TEAM_BALLA;
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~p~BALLAS", 5000, 6);
}
return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}

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 OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}

And that happen :

Quote:

E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(57) : error 021: symbol already defined: "SetPlayerPos"
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(60) : error 010: invalid function or declaration
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(66) : error 010: invalid function or declaration
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(72) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)