Advertisement
leo1553

Comando Offline e Online

Nov 10th, 2015
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. new pId;
  2. if(sscanf(params, "u", pId)) {
  3.     return SendClientMessage(playerid, -1, "Use /Comando [Usuário], o Usuário pode estar ou não conectado.");
  4. }  
  5. if(!IsPlayerConnected(pId)) {
  6.     //Offline:
  7.     if(strlen(params) < 4)
  8.         return SendClientMessage(playerid, -1, "Use /Comando [Usuário], o Usuário pode estar ou não conectado.");
  9.     if(!fexists(/ Arquivo do Jogador DESCONECTADO /))
  10.         return SendClientMessage(playerid, -1, "Usuário não INEXISTENTE (Não Encontrado na Database)");
  11.     //Comando Offline
  12.     return 1;
  13. }
  14. //Comando Online
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement