Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By Shepher & The Rev'
- else if(strncmp(comando, "item", 4) == 0)
- {
- int id, ef1, ef2, ef3, efv1,efv2,efv3;
- sscanf(comando, "item %d %d %d %d %d %d %d", &id, &ef1, &efv1, &ef2, &efv2, &ef3, &efv3);
- int itenslots = FindInv(clientid, 0);
- if(itenslots == -1)
- {
- SendClientMsg(clientid, "Inventário cheio!");
- return;
- }
- else
- {
- player->Inventory[itenslots].Index = id;
- player->Inventory[itenslots].EF1 = ef1;
- player->Inventory[itenslots].EFV1 = efv1;
- player->Inventory[itenslots].EF2 = ef2;
- player->Inventory[itenslots].EF3 = ef3;
- player->Inventory[itenslots].EFV3 = efv3;
- SendALL(clientid);
- SendClientMsg(clientid, comando);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment