How might i go about doing this?(player classes)
#3

Quote:
Originally Posted by MisterTickle
Посмотреть сообщение
This is an example where if the first 3 classes we're Grove Street and the next 3 we're FBI

Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0 || classid == 1 || classid == 2)
	{
		GameTextForPlayer(playerid, "~b~Grove Stret", 3000, 3);
		SetPlayerInterior(playerid, 1);
	 	SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
	    SetPlayerFacingAngle(playerid, 94.0821);
	    SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
	}
	else if(classid == 3 || classid == 4 || classid == 5)
	{
		GameTextForPlayer(playerid, "~b~FBI", 3000, 3);
		SetPlayerInterior(playerid, 1);
	 	SetPlayerPos(playerid, 214.7581,-41.0411,1002.0234);
	    SetPlayerFacingAngle(playerid, 94.0821);
	    SetPlayerCameraPos(playerid, 212.6498,-41.0299,1002.0234);
        SetPlayerCameraLookAt(playerid, 214.7581,-41.0411,1002.0234);
	return true;
}
so i would just go about doing this with an if statement?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)