11.05.2013, 16:27
Good Morning,
Let`s beggin.
I make spawn for factions but when I connect spawn me where I`m disconnect . When I type /respawn spawn me in place where I was 5 second away.
This is a part of all factions.
Sorry for english. I`m not in a good mood.
Let`s beggin.
I make spawn for factions but when I connect spawn me where I`m disconnect . When I type /respawn spawn me in place where I was 5 second away.
pawn Код:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0)
{
SetPlayerPos(playerid, 1733.1367,-1911.9568,13.5621);
}
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerPos(playerid, 1530.1512,-1668.0510,6.2188);/* Police Department*/
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(playerid, 30, 100);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 26, 500);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 200);
}
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerPos(playerid, 395.8242,-1155.4259,1234.8639);/*FBI*/
GivePlayerWeapon(playerid, 24, 150);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 200);
}
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerPos(playerid, 324.9394,309.0272,999.1484);/*Sheriff*/
GivePlayerWeapon(playerid, 24, 150);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 200);
}
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerPos(playerid, 1865.0272,-1725.1395,5202.5859);/*Departament of corection*/
GivePlayerWeapon(playerid, 24, 150);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 200);
}
Sorry for english. I`m not in a good mood.