Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Functions.h"
- #include "Define.h"
- void Command(int clientid, int cmd_addr)
- {
- char comando[100];
- sprintf(comando, "%s %s", cmd_addr+0x0C, cmd_addr+0x1C);
- int addr_bclient = clientid * 0x0410;
- int cLevel = PInt(addr_bclient + LEVEL_ADDR);
- if((strncmp(comando, "on", 2) == 0) && (cLevel >= 0))
- {
- int n_p,i,cName;
- char Message[100];
- n_p = 0;
- for(i=0;i<=100;i++)
- {
- cName =PByte( Name_addr + ( i * 0x410));
- if (cName != 0)
- {
- n_p ++;
- }
- }
- sprintf(Message,"Estão conectados %d player(s)",n_p);
- SendClientMessage(clientid,Message);
- asm(".intel_syntax noprefix\n");
- asm("mov eax, 1\n");
- return;
- }
- asm(".intel_syntax noprefix\n");
- asm("mov eax, 0\n");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement