Advertisement
toribio

toribio

Mar 15th, 2009
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. if(!strcmp(cmdtext, "/usartag", true))
  2. {
  3.     new pname[MAX_PLAYER_NAME], File:arquivo;
  4.     GetPlayerName(playerid, pname, sizeof pname);
  5.     if(strfind(pname, "[SK]", false) != -1)
  6.     {
  7.         SendClientMessage(playerid, 0xFF0000AA, "Você já está com a tag [SK]!");
  8.         return 1;
  9.     }
  10.     strins(pname, "[SK]", 0);
  11.     SetPlayerName(playerid, pname);
  12.     SendClientMessage(playerid, 0xFFFFFFAA, "Tag [SK] adicionada!");
  13.     arquivo = fopen("nicks.txt", io_append);
  14.     fwrite(arquivo, pname);
  15.     fwrite(arquivo, "\r\n");
  16.     fclose(arquivo);
  17.     return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement