SHARE
TWEET

Untitled

a guest Aug 12th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <RotazionePlayer> // By ~Peppinux AKA Peppe_Stasu
  2.  
  3.  public OnPlayerRequestClass(playerid, classid)
  4. {
  5.     SetPlayerPos(playerid, 213.1674, 1822.6595, 6.4141);
  6.     SetPlayerCameraPos(playerid, 217.7979, 1822.7462, 6.4141);
  7.     SetPlayerCameraLookAt(playerid, 213.1674, 1822.6595, 6.4141);
  8.     SetPlayerFacingAngle(playerid, 261);
  9.    
  10.     inizioRotazionePlayer(playerid);
  11.  
  12.     if(classid == 0)
  13. {
  14.     gTeam[playerid] = ALFA;
  15.     GameTextForPlayer(playerid,"TEAM ~r~ALFA!", 5000, 6);
  16. }
  17.     else if(classid == 1)
  18. {
  19.     gTeam[playerid] = BETA;
  20.     GameTextForPlayer(playerid,"TEAM ~r~BETA!", 5000, 6);
  21. }
  22.     else if(classid == 2)
  23. {
  24.     gTeam[playerid] = REF;
  25.     GameTextForPlayer(playerid,"TEAM ~r~REF!", 5000, 6);
  26. }
  27.     return 1;
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. public OnPlayerSpawn(playerid)
  36. {
  37.     AntiDeAMX();
  38.     fineRotazionePlayer(playerid);
  39.  
  40.     TextDrawShowForPlayer(playerid,Hour),TextDrawShowForPlayer(playerid,Date),TextDrawShowForPlayer(playerid,Version);
  41.     TextDrawShowForPlayer(playerid,Language),TextDrawHideForPlayer(playerid,Barra),TextDrawHideForPlayer(playerid,Barra2);
  42.     TextDrawHideForPlayer(playerid,Connessione1),TextDrawHideForPlayer(playerid,Connessione2),TextDrawHideForPlayer(playerid,Connessione3);
  43.     TextDrawHideForPlayer(playerid,Connessione4);
  44.     SetPlayerTeam(playerid,gTeam[playerid]);
  45.  
  46.     if(gTeam[playerid] == ALFA)
  47. {
  48.     TextDrawShowForPlayer(playerid,Team);
  49. }
  50.     if(gTeam[playerid] == BETA)
  51. {
  52.     TextDrawShowForPlayer(playerid,Team2);
  53. }
  54.  
  55.     if(gTeam[playerid] == REF)
  56. {
  57.     TextDrawShowForPlayer(playerid,Team3);
  58. }
  59.  
  60.     if(gTeam[playerid] == ALFA)
  61. {
  62.     GameTextForPlayer(playerid,"TEAM ~r~ALFA!", 5000, 6);
  63.     SetPlayerColor(playerid,0xFF9900AA);
  64.     SetPlayerArmour(playerid,100);
  65.     GivePlayerMoney(playerid,-200);
  66.     SendClientMessage(playerid, 0xFF9900AA,"[Info:] You select the ALFA team!");
  67.     SendClientMessage(playerid, 0xFF9900AA,"[Info:] You are in the relax zone! Wait for the start of the CW!");
  68.     PlayerPlaySound(playerid, 1159, 0, 0, 0);
  69.     fineRotazionePlayer(playerid);
  70. }
  71.     if(gTeam[playerid] == BETA)
  72. {
  73.     GameTextForPlayer(playerid,"TEAM ~r~BETA!", 5000, 6);
  74.     SetPlayerColor(playerid,0xFFFF00AA);
  75.     SetPlayerArmour(playerid,100);
  76.     GivePlayerMoney(playerid,-200);
  77.     SendClientMessage(playerid, 0xFF9900AA,"[Info:] You select the BETA team!");
  78.     SendClientMessage(playerid, 0xFF9900AA,"[Info:] You are in the relax zone! Wait for the start of the CW!");
  79.     PlayerPlaySound(playerid, 1159, 0, 0, 0);
  80.     fineRotazionePlayer(playerid);
  81. }
  82.     if(gTeam[playerid] == REF)
  83. {
  84.     GameTextForPlayer(playerid,"TEAM ~r~REF!", 5000, 6);
  85.     SetPlayerColor(playerid,0xAA3333AA);
  86.     SetPlayerArmour(playerid,100);
  87.     GivePlayerMoney(playerid,-200);
  88.     SendClientMessage(playerid, 0xFF9900AA,"[Info:] You select the REF team! Type /Start to start the Clanwar!");
  89.     PlayerPlaySound(playerid, 1159, 0, 0, 0);
  90.     fineRotazionePlayer(playerid);
  91. }
  92.     PlayerPlaySound(playerid, 1182, 0, 0, 0);
  93.     return 1;
  94. }
RAW Paste Data
Top