daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Comandos uteis para seu servidor
  2.    Creditos a josué */
  3. public OnPlayerCommandText(playerid, cmdtext[])
  4. {
  5.      if(!strcmp(cmdtext, "/mudar", true))
  6.      {
  7.       new cmd[256];
  8.       new cmd1[256];
  9.       GetPlayerName(playerid, cmd, 256);
  10.       format(cmd1, 256, "%s  Vai mudar de time (/mudar)", cmd);
  11.       SendClientMessageToAll(0xFFFFAE96, cmd1);
  12.       ForceClassSelection(playerid);
  13.       SetPlayerHealth(playerid,0);
  14.       return 1;
  15.      }
  16.      if(!strcmp(cmdtext, "/tunar", true))
  17.      {
  18.        if(IsPlayerInAnyVehicle(playerid))
  19.      {
  20.       new cmd[256];
  21.       new cmd1[256];
  22.       GetPlayerName(playerid, cmd, 256);
  23.       format(cmd1, 256, "%s  Tunou seu veiculo (/tunar)", cmd);
  24.       SendClientMessageToAll(0xFFFFAE96, cmd1);
  25.       AddVehicleComponent(GetPlayerVehicleID(playerid),1081);
  26.       AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  27.       AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
  28.       return 1;
  29.      }
  30.      if(!strcmp(cmdtext, "/reparar", true))
  31.      {
  32.        if(IsPlayerInAnyVehicle(playerid))
  33.      {
  34.       new cmd[256];
  35.       new cmd1[256];
  36.       GetPlayerName(playerid, cmd, 256);
  37.       format(cmd1, 256, "%s  reparou seu veiculo (/reparar)", cmd);
  38.       SendClientMessageToAll(0xFFFFAE96, cmd1);
  39.       SetVehicleHealth(GetPlayerVehicleID(playerid),999);
  40.       return 1;
  41.      }
  42.      if(!strcmp(cmdtext, "/flip", true))
  43.      {
  44.        if(IsPlayerInAnyVehicle(playerid))
  45.      {
  46.       new cmd[256];
  47.       new cmd1[256];
  48.       GetPlayerName(playerid, cmd, 256);
  49.       format(cmd1, 256, "%s  descapotou sue veiculo (/flip)", cmd);
  50.       SendClientMessageToAll(0xFFFFAE96, cmd1);
  51.       new Float:X, Float:Y, Float:Z;
  52.       if(IsPlayerInAnyVehicle(playerid))
  53.       SetCameraBehindPlayer(playerid);
  54.       GetPlayerPos(playerid, X, Y, Z);
  55.       SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
  56.       SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
  57.       return 1;
  58.      }
  59.      if(!strcmp(cmdtext, "/kill", true))
  60.      {
  61.       new cmd[256];
  62.       new cmd1[256];
  63.       GetPlayerName(playerid, cmd, 256);
  64.       format(cmd1, 256, "%s ce matou (/kill)", cmd);
  65.       SendClientMessageToAll(0xFFFFAE96, cmd1);
  66.       SetPlayerHealth(playerid,0);
  67.       return 1;
  68.      }
  69. //acho que ta bom por enquanto eces são os mais uzados flw ae XD
RAW Paste Data
Top