Spawn Place Selection
#1

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
Reply
#2

Trylooking at:

https://sampwiki.blast.hk/wiki/SetPlayerTeam
https://sampwiki.blast.hk/wiki/GetPlayerTeam
Reply
#3

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
Reply
#4

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...
Reply
#5

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.
Reply
#6

ahhhhhhhhhhhh Okay , i'll try dialog..
Reply
#7

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)