Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

cmd givemoney

$
0
0
hey guys i make a command for give money no errors but command dont work when i type /givemoney playerid 1 it dont give me any amount help
code
Code:

CMD:givemoney(playerid,params[])
{
if(IsPlayerAdmin(playerid) < 1) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
 new targetid;
 new value;
 {
  if(sscanf(params, "d", targetid, value)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Koristi /givemoney [playerid] [money]");
        {
          if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0x33AA33AA, "[BA:RP]Igrac nije online!");
            {
              if(IsPlayerAdmin(targetid) < 1)return SendClientMessage (playerid, 0x33AA33AA, "[BA:RP]Niste Ovlasceni!");
            GivePlayerMoney(playerid, value);
            }
          }
          }
        return 1;
      }


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>