[DUV]Drogas
#2

pawn Код:
if(strcmp(cmdtext, "/usardrogas", true) == 0)
  {
    new Float:Colete;
    GetPlayerArmour(playerid, Colete); // Pega o valor do colete.

    if(Colete > 90) // Verifica o colete.
    {
      SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo pode usar mais drogas"); // Se for maior que 90 ele nгo vai poder usar.
      return 1;
    }
    else // Se o colete nгo for maior que 90
    {
      Maconha[playerid] --;  // Tira 1 maconha.
      SetPlayerArmour(playerid, Colete + 10); // Dб 10 de colete.
    }
    return 1;
  }
Й sу uma base Ai vc pode ir modificando colocando SendClientMessage etc...
Reply


Messages In This Thread
[DUV]Drogas - by Gangster_ - 03.06.2010, 23:58
Re: [DUV]Drogas - by Brunin_OwnZ - 04.06.2010, 14:20
Re: [DUV]Drogas - by ipsBruno - 04.06.2010, 14:41
Re: [DUV]Drogas - by Gangster_ - 04.06.2010, 18:28
Re: [DUV]Drogas - by andmeida10 - 04.06.2010, 18:38
Re: [DUV]Drogas - by Gangster_ - 04.06.2010, 21:36
Re: [DUV]Drogas - by ipsBruno - 04.06.2010, 21:39
Re: [DUV]Drogas - by Gangster_ - 04.06.2010, 21:44
Re: [DUV]Drogas - by Dr_Pawno - 15.06.2010, 19:07
Re: [DUV]Drogas - by Dr_Pawno - 15.06.2010, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)