Script Pila :D

« Older   Newer »
  Share  
ÐàvìdêFàrìñà
CAT_IMG Posted on 4/10/2011, 18:58     +1   -1




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);
}
 
Top
0 replies since 4/10/2011, 18:58   28 views
  Share