Advertisement
DraKiNs

[COD] Prender Jogador

Jun 26th, 2011
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.83 KB | None | 0 0
  1. if(GetPlayerWantedLevel(playerid) > 1)
  2. {
  3.     GameTextForPlayer(playerid, "~r~Preso!", 2500, 3);
  4.     SetPlayerWantedLevel(playerid, 0)
  5.  
  6.     static
  7.         szName[MAX_PLAYER_NAME][2],
  8.         szString[128];
  9.  
  10.     GetPlayerName(playerid, szName[0],  MAX_PLAYER_NAME);
  11.     GetPlayerName(killerid, szName[1],  MAX_PLAYER_NAME);
  12.  
  13.     format(szString, sizeof(szString), "<< O jogador %s prendeu %s >>", szName[1],szName[0]);
  14.     SendClientMessageToAll(0xFFFFFFFF, szString);
  15.  
  16.     SetPlayerPos(playerid, 246.7079,66.2239,1003.6406);
  17.     return SetTimerEx("@Desprender", 20000, false, "i", playerid);
  18. }
  19.  
  20. @Desprender(i);
  21. public @Desprender(i)
  22. {
  23.  
  24.     static szName[128];
  25.     GetPlayerName(i, szName, MAX_PLAYER_NAME);
  26.  
  27.     format(szName, sizeof(szName), "<< O jogador %s foi solto >>", szName);
  28.     SendClientMessageToAll(0xFFFFFFFF, szName);
  29.  
  30.     return SpawnPlayer(i);
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement