public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) if(classid == 107) { SetPlayerPos(playerid, 2317.0159,-1516.9567,25.3438); SetPlayerCameraPos(playerid, 2313.0298,-1516.8867,25.3438); SetPlayerFacingAngle(playerid, 174.3740); SetPlayerCameraLookAt(playerid, 2317.0159,-1516.9567,25.3438); } public OnPlayerConnect(playerid) {
public OnPlayerRequestClass(playerid, classid) if(classid == 0) { SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438); SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438); SetPlayerFacingAngle(playerid,174.3740); SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438); if(classid == 1) { SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438); SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438); SetPlayerFacingAngle(playerid,174.3740); SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438); } }
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438);
SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438);
SetPlayerFacingAngle(playerid,174.3740);
SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438);
if(classid == 1)
{
SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438);
SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438);
SetPlayerFacingAngle(playerid,174.3740);
SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438);
}
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 0)
{
SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438);
SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438);
SetPlayerFacingAngle(playerid,174.3740);
SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438);
}
if(classid == 1)
{
SetPlayerPos(playerid,2317.0159,-1516.9567,25.3438);
SetPlayerCameraPos(playerid,2313.0298,-1516.8867,25.3438);
SetPlayerFacingAngle(playerid,174.3740);
SetPlayerCameraLookAt(playerid,2317.0159,-1516.9567,25.3438);
}
return 1;
}
Thanks, i'll remember that.
Btw, just a quick question, how does the script know I want skin id 107? |