Advertisement
Romanius

Untitled

Jul 8th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. forward __OnPlayerConnect(playerid, has_patcher);
  4.  
  5. public OnPlayerConnect(playerid)
  6. {
  7. new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  8. new postData[64]; format(postData, 64, "n=%s", pName);
  9. HTTP(playerid, HTTP_POST, "http://romanius.com/imgget.php", postData, "_patcherPlayerConnect");
  10. }
  11.  
  12. forward _patcherPlayerConnect(index, response_code, data[]);
  13. public _patcherPlayerConnect(index, response_code, data[])
  14. {
  15. CallLocalFunction("__OnPlayerConnect", "ii", index, strval(data));
  16. }
  17.  
  18. public __OnPlayerConnect(playerid, has_patcher)
  19. {
  20. if(!has_patcher)
  21. Kick(playerid);
  22.  
  23. /* Тут твой код, который должен быть в ОНПЛЕЕРКОННЕКТ */
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement