ÐàvìdêFàrìñà |
|
| Sotto oncommandplayertext CODICE if (strcmp("/pila", cmdtext, true, 10) == 0) { pila(playerid); PlayerActionMessage(playerid,15.0,"prende una pila dalla tasca"); return 1; } if (strcmp("/conservapila", cmdtext, true, 10) == 0) { if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2); PlayerActionMessage(playerid,15.0,"ripone la pila nella tasca"); return 1; } Infondo alla GM CODICE pila(playerid) { if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2); SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1); }
|
| |