shepher

Comando /item - Shepher & The Rev'[Your Destiny Project.dll]

Jun 26th, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. // By Shepher & The Rev'
  2. else if(strncmp(comando, "item", 4) == 0)
  3. {
  4. int id, ef1, ef2, ef3, efv1,efv2,efv3;
  5. sscanf(comando, "item %d %d %d %d %d %d %d", &id, &ef1, &efv1, &ef2, &efv2, &ef3, &efv3);
  6. int itenslots = FindInv(clientid, 0);
  7. if(itenslots == -1)
  8. {
  9. SendClientMsg(clientid, "Inventário cheio!");
  10. return;
  11. }
  12. else
  13. {
  14. player->Inventory[itenslots].Index = id;
  15. player->Inventory[itenslots].EF1 = ef1;
  16. player->Inventory[itenslots].EFV1 = efv1;
  17. player->Inventory[itenslots].EF2 = ef2;
  18. player->Inventory[itenslots].EF3 = ef3;
  19. player->Inventory[itenslots].EFV3 = efv3;
  20. SendALL(clientid);
  21. SendClientMsg(clientid, comando);
  22. return;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment