03.02.2012, 11:57
Okayy I have this:
the spawning is working, but the coords are not working. I spawn every time on the same place. What to do?
pawn Код:
case DIALOG_SOLDIER:
{
if( response )
if(gTeam[playerid] == TEAM_USA)
{
gPlayerClass[playerid] = SOLDIER_CLASS;
SpawnPlayer(playerid, -251.3996,2602.4814,62.8582);
GivePlayerWeapon(playerid, 4, 1);//knife
GivePlayerWeapon(playerid, 16, 2);//grenades
GivePlayerWeapon(playerid, 24, 15);//desert eagle
GivePlayerWeapon(playerid, 31, 60);//m4
GivePlayerWeapon(playerid, 26, 15);//sawn off shotgun
GivePlayerWeapon(playerid, 29, 30);//mp5
SetPlayerHealth(playerid, 75);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0); // Without this you'll be kicked when you spawn. Set it to wherever you want.
return 1;
}