Questions
#1

1.how i made pm command(player masseage)
2.what the command to send cash(givecash) some thing like that
3.what the object id inside that picture
/imageshack/img34/7231/samp004pi.png
4.i have done nitro command
and i want they will pay for nitro
the command is
{
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0xAA3333AA,"!аъд ма бшлб");
AddVehicleComponent(GetPlayerVehicleID(playerid),1 010);
SendClientMessage(playerid,0xFFFF00AA, "чйбмъд аъ дрйише бдцмзд");
return 1;
}
Reply
#2

1. already done

2.
pawn Code:
dcmd_givecash(playerid,params[])
{
  new
    targetid,
    amount;

  if(sscanf(params, "ui", targetid, amount))
  {
    SendClientMessage(playerid, COLOUR_RED, "Use: /givecash [playerid] [amount]");
    return true;
  }
  if(!IsPlayerConnected(targetid))
  {
    SendClientMessage(playerid, COLOUR_RED, "Incorrect playerid.");
    return true;
  }
  if(amount < 1)
  {
    SendClientMessage(playerid, COLOUR_RED, "Invalid transaction amount");
    return 1;
  }
  new
    string[128],
    pname[MAX_PLAYER_NAME],
    pname2[MAX_PLAYER_NAME];

  GetPlayerName(playerid, pname, sizeof(pname));
  GetPlayerName(targetid, pname2, sizeof(pname2));

  format(string, sizeof(string), "%s sent you $%d", pname, amount);
  SendClientMessage(targetid,COLOUR_GREEN, string);

  format(string, sizeof(string), "You sent %s, $%d", pname2, amount);
  SendClientMessage(playerid,COLOUR_GREEN, string);
 
  GivePlayerMoney(targetid, amount);
  GivePlayerMoney(playerid, -amount);

  return true;
}
3. dont know search
4.
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
    AddVehicleComponent(vehicleid,1010);
return 1;
}
Reply
#3

about 1
i dont have that command
about 2
its say 7 errors
and some 1 give me some thing will work 100 %
about 3 i dont know where to search
about 4 thanks
and 1 more thing
i want to make the game will have night 2
i mean 24 hours will be not only moring
Reply
#4

You see up at the top of the forum page, it has a little search box?
Type your query into that box and press the 'Search' Button.
everything you have just asked has been asked over 50 times before.

Edit:
wiki.sa-mp.com
Check it out.
Reply
#5

What errors you get with brett7's givecash command?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)