public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(105,2497.2693,-1676.9578,13.3398,23.6501,0,0,0,0,0,0); //Grove Street Gang Member (0) AddPlayerClass(280,1544.0514,-1675.7766,13.5577,98.0974,0,0,0,0,0,0); //Police Officer (1) return 1; } |
public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid); SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } |
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == GROVE_STREET)
{
SetPlayerPos(playerid, X,Y,Z); //Replace X Y Z with your spawn coordinates.
}
else if(GetPlayerTeam(playerid) == POLICE)
{
SetPlayerPos(playerid, X,Y,Z); //Replace X Y Z with your spawn coordinates.
}
return 1;
}