06.08.2012, 13:59
Hello!
I created a command /join. I want when a player use it to send him to a place where he will write 'next' - 'next' - 'done' till he likes one of some skins that I put there.Than ,when the player write 'done' ,he will respawn to the TEAM HQ. How can I do that?
Thank you!
P.S.:If this is a too long script,ignore my thread.
Here is the command:
I created a command /join. I want when a player use it to send him to a place where he will write 'next' - 'next' - 'done' till he likes one of some skins that I put there.Than ,when the player write 'done' ,he will respawn to the TEAM HQ. How can I do that?
Thank you!
P.S.:If this is a too long script,ignore my thread.
Here is the command:
Код:
CMD:join( playerid, params[ ] ) { if(GetPlayerTeam(playerid) == 0) { if(IsPlayerInRangeOfPoint(playerid,15.0,1394.8756,1185.4381,10.8203))//SouthBoys { SetPlayerTeam(playerid, 1); SCM(playerid,COLOR_SOUTHBOYS,"You are now a SouthBoy."); SpawnPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 15.0,2159.3467,943.1246,10.8203))//Yakoo { SetPlayerTeam(playerid, 2); SCM(playerid,COLOR_YAKOO,"You are now a Yakoo."); SpawnPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 15.0,1656.0500,1733.3713,10.8281))//Triads { SetPlayerTeam(playerid, 3); SCM(playerid,COLOR_TRIADS,"You are now a Triad."); SpawnPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 15.0,2166.2202,1987.4426,10.8203))//Mafia { SetPlayerTeam(playerid, 4); SCM(playerid,COLOR_MAFIA,"You are now a Mafia Member."); SpawnPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 15.0,1615.4381,2281.0146,10.8125))//Vagos { SetPlayerTeam(playerid, 5); SCM(playerid,COLOR_VAGOS,"You are now a Vagos."); SpawnPlayer(playerid); } else if(IsPlayerInRangeOfPoint(playerid, 15.0,2340.3755,2457.7373,14.9688))//Cops { SetPlayerTeam(playerid, 6); SCM(playerid,COLOR_COPS,"You are now a Cop."); SpawnPlayer(playerid); } } else { SCM(playerid,COLOR_DGREY,"You must be a Civillian if you want to join this Team."); } }