Help on player spawn
#1

Hello, I need some help on my Zombie Script.

On player spawn I made this code here:

Quote:

if(Equipo[playerid] == E_Zombie)
{
new rand = random(sizeof(ZombieSpawn));
SetPlayerPos(playerid, ZombieSpawn[rand][0], ZombieSpawn[rand][1]);
SetPlayerColor(playerid, Rojo);
GivePlayerWeapon(playerid, 335, 1);
GivePlayerWeapon(playerid, 365, 99999);
GameTextForPlayer(playerid,"~r~Zombie",4000,1);
label[playerid] = Create3DTextLabel("Zombie",Rojo,30.0,40.0,50.0,40. 0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);

}
if(Equipo[playerid] == E_Human)
{
new rand = random(sizeof(HumanSpawn));
SetPlayerPos(playerid, HumanSpawn[rand][0], HumanSpawn[rand][1]);
SetPlayerColor(playerid, Blanco);
GivePlayerWeapon(playerid, 349, 500);
GivePlayerWeapon(playerid, 368, 1);
GivePlayerWeapon(playerid, 341, 1);
GivePlayerWeapon(playerid, 342, 5);
GameTextForPlayer(playerid,"~w~Human",4000,1);
label[playerid] = Create3DTextLabel("Human",Blanco,30.0,40.0,50.0,40 .0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}

I made it to give each team its own weapons and Labels and player colors on each team.
But the weapons dont work. It dosent give the players its weapons.
and on the Labels some times it gets scrude up exampel:
Player ID: 1 Joind my server as human team then his label says Human. then he desconnectes.
Then another player Joins my server as ID: 1 as zombie team. Hes Label says Human Zombie! Both! and its soposed to be zombie! Help! i dont know what to do!

Also i wish if some one to give me a little script to eject the zombie team out of the vehicles. Please i hope u understand.
Reply


Messages In This Thread
Help on player spawn - by MyBozz - 07.08.2011, 18:42
Re: Help on player spawn - by Backwardsman97 - 07.08.2011, 18:47
Re: Help on player spawn - by [MG]Dimi - 07.08.2011, 18:49
[No subject] - by MyBozz - 07.08.2011, 18:49
Re: Help on player spawn - by [MG]Dimi - 07.08.2011, 18:54
Re: Help on player spawn - by MyBozz - 07.08.2011, 19:04
Re: Help on player spawn - by [MG]Dimi - 07.08.2011, 19:25
Re: Help on player spawn - by MyBozz - 07.08.2011, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)