16.12.2011, 19:39
Hello guys,
I'm making a Pilot gamemode and I was wondering how I would make them select a role before they spawn.
This is my OnPlayerSpawn
I wanna make a dialog where they have to select a role first and they have to have a certain amount of score before selecting say Military Role. you need 50+ points, can someone help me out, I wont copy and paste I will write it out and try it, this is my first time adding dialogue this is why I need help, Thanks guys.
I'm making a Pilot gamemode and I was wondering how I would make them select a role before they spawn.
This is my OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PVar[playerid][pLastX] != 0.0 && PVar[playerid][pLastY] != 0)
{
SetPlayerPos(playerid, PVar[playerid][pLastX], PVar[playerid][pLastY], PVar[playerid][pLastZ]);
SetPlayerInterior(playerid, PVar[playerid][pInt]);
}
else SetPlayerPos(playerid, -2808.0325, -1516.4255, 140.8438), SetPlayerInterior(playerid, 0);
return 1;
}