24.10.2013, 09:22
How do i change spawn?
i mean how do i change the spawn for players when joins?
i mean how do i change the spawn for players when joins?
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,x,y,z); //change , x ,y ,z to your postions you want
return 1;
}
public OnPlayerConnect(playerid
{
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z);
return 1;
}