23.12.2010, 01:45
mhh,
maybe try it like:
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:
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
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);
}
}
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
}
}
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

