Player Class does not spawn with weapons?
#6

mhh,
maybe try it like:

pawn Код:
//OnGameModeInit

AddPlayerClass(299,0,0,0,0,22,100,31,300,16,3); // add skins here with AddPlayerClass
//and give them the first 3 weapons

//OnPlayerRequestSpawn
   

    {
          switch (classid)
    {
            case 0: //first skin u added with AddPLayerClass
            {
                GivePlayerWeapon(yourstuff);
        }

        case 1: //seccond skin and so on...
        {
                 GivePlayerWeapon(yourstuff);
        }

 }
But i see now that this is dump cause i dont know if u can give someone a wapons on the playerrequest.
But its very late now and i have to go to bed
Do u have teams defined or do u want to give every single player different weapons?
Cause if u want to give certain weapons to a certain team do it like this:

pawn Код:
//e.g under OnPlayerSpawn
    {
          switch (gTeam[playerid])
    {
        case 1: //team1
        {

             //Give ur weps here for team1
        }

        case 2: //team2
        {
               //Give ur weps here for team2

        }

 }
To do it like this u need to define the teams first with the gTeam method.
This is explained very well in the wiki.

//edit:
Btw: where did u put ur case function? OnPlayerSpawn?
Its hard to find the problem without the whole code but u can try to put a SendClientMessage there too, to check if ur script is passing trought this code part.
It often happens that u set a wrong } or a return on the wrong place that interrupts ur script and doesnt finish the whole work that is written in ur code
Reply


Messages In This Thread
Player Class does not spawn with weapons? - by propilot - 23.12.2010, 00:43
Re: Player Class does not spawn with weapons? - by BlackWolf120 - 23.12.2010, 00:49
Re: Player Class does not spawn with weapons? - by propilot - 23.12.2010, 01:06
Re: Player Class does not spawn with weapons? - by BlackWolf120 - 23.12.2010, 01:23
Re: Player Class does not spawn with weapons? - by propilot - 23.12.2010, 01:29
Re: Player Class does not spawn with weapons? - by BlackWolf120 - 23.12.2010, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)