Spawn Place Selection - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn Place Selection (
/showthread.php?tid=238356)
Spawn Place Selection -
Soumi - 11.03.2011
Hello Everyone , after the player chooses a class and a team , he will have to select a Death match area , like , player chose cops team , then he'll choose between Mad dog house and Jefferson motel , How to do that?
Thanks
Re: Spawn Place Selection -
Stigg - 11.03.2011
Trylooking at:
https://sampwiki.blast.hk/wiki/SetPlayerTeam
https://sampwiki.blast.hk/wiki/GetPlayerTeam
Re : Spawn Place Selection -
Soumi - 11.03.2011
loooool , I Don't mean that , after selecting a class/team , Player will have to choose between 2 places to spawn
That's what i need
Re: Re : Spawn Place Selection -
omer5198 - 11.03.2011
Quote:
Originally Posted by Soumi
loooool , I Don't mean that , after selecting a class/team , Player will have to choose between 2 places to spawn
That's what i need
|
use dialog...
Re: Re : Spawn Place Selection -
Stigg - 11.03.2011
Quote:
Originally Posted by Soumi
loooool , I Don't mean that , after selecting a class/team , Player will have to choose between 2 places to spawn
That's what i need
|
SEARCH is your friend.
Re : Re: Re : Spawn Place Selection -
Soumi - 11.03.2011
ahhhhhhhhhhhh Okay , i'll try dialog..
Re: Spawn Place Selection -
omer5198 - 11.03.2011
pawn Код:
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose Team", "cops\r\nOtherTeam", "Choose", "Cancel");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid, COLOR, "you chose the cops team");
}
case 1:
{
SetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid, COLOR, "you chose the OtherTeam");
}
}
}
return 1;
}
try this... tell me if there are any errors
Re: Spawn Place Selection -
Stigg - 11.03.2011
Quote:
Originally Posted by omer5198
pawn Код:
public OnPlayerSpawn(playerid) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose Team", "cops\r\nOtherTeam", "Choose", "Cancel"); } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { switch(listitem) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, COLOR, "you chose the cops team"); } case 1: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, COLOR, "you chose the OtherTeam"); } } } return 1; }
try this... tell me if there are any errors
|
Check your pm for that countdown omer.