05.12.2013, 06:15
Hey guys,
Sorry to bother again, but i just created a new Dialog spawn choosing system, which allows you to choose your spawn. My problem is, that when the player spawns, the game automatically freezes them.
My code:
How can i make it so it doesnt freeze?..
Sorry to bother again, but i just created a new Dialog spawn choosing system, which allows you to choose your spawn. My problem is, that when the player spawns, the game automatically freezes them.
My code:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 0)//Class { if(response) { if(listitem == 0) { if(GetPlayerScore(playerid) >= 0) { SendClientMessage(playerid, blue, "*You have chosen the Trucker Class"); SetPlayerPos(playerid, 0,0,3.0); ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Choose Your Spawn", "Los Santos Depot","Spawn", ""); TogglePlayerControllable(playerid, 1); gPlayerClass[playerid] = TRUCKER; PickedClass[playerid] = 1; SetPlayerVirtualWorld(playerid, 0); } } if(dialogid == 6)//Spawn { if(listitem == 0) { SetPlayerPos(playerid, 2483.5586,-2119.3044,13.5469); TogglePlayerControllable(playerid, 1); } }