[SA-MP] Pomoc oko skripte.
Results 1 to 2 of 2
  1. #1
    Junior Member Array
    Join Date
    Mar 2018
    Karma
    0

    Unhappy Pomoc oko skripte.

    Pozdrav svima!
    Pokusao sam da napravim komandu tie... Da vezem nekoga.
    kada kucam /tie i id vezem ga... ali ja kada kucam /tie i moj id vezem sebe ...
    moze li mi neko pomoci u cemu je problem??
    Hvala unapred!

    Skripta:

    PHP Code:
    CMD:tie(playeridparams[])
    {
       new 
    TargetIDidVezan[256], OnajKojiVeze[256], xyzP_NAME[MAX_PLAYER_NAME], T_NAME[MAX_PLAYER_NAME], sediste;
       
    sediste GetPlayerVehicleSeat(playerid);
       if(
    sscanf(params"u"TargetID)) return SendClientMessage(playeridZelena"/tie (TargetID)");
       if(!
    IsPlayerConnected(TargetID)) return SendClientMessage(playeridCrvena"Igrac nije online!");
       if(!
    IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCrvena"Moras biti u vozilu!");
       if(!
    IsPlayerInAnyVehicle(TargetID)) return SendClientMessage(playeridCrvena"Igrac mora biti u vozilu!");
       
    GetPlayerPos(TargetIDFloat:xFloat:yFloat:z);
       if(!
    IsPlayerInRangeOfPoint(playerid2.0Float:xFloat:yFloat:z)) return  SendClientMessage(playeridCrvena"Igrac nije u blizini!");
       if(
    sediste != 0) return SendClientMessage(playeridCrvena"Moras biti na mestu vozaca!");
       if(
    playerid == id) return SendClientMessage(playeridCrvena"Nemozes vezati sebe!");
       
    GetPlayerName(playeridP_NAMEMAX_PLAYER_NAME);
       
    GetPlayerName(TargetIDT_NAMEMAX_PLAYER_NAME);
       
    format(Vezansizeof(Vezan), "Igrac %s vas je vezao!"P_NAME);
       
    format(OnajKojiVezesizeof(OnajKojiVeze), "Vezali ste %s-a!"T_NAME);
       
    SendClientMessage(playeridZelenaOnajKojiVeze);
       
    SendClientMessage(TargetIDCrvenaVezan);
       
    TogglePlayerControllable(TargetID0);
       
    SetPlayerWantedLevel(playerid4);
       return 
    1;

    Last edited by Milos121; 16-03-2018 at 19:58.

  2. #2
    Senior Member Array
    Join Date
    Jun 2016
    Location
    Republika Srpska
    Age
    19
    Karma
    0

    Default

    Samo dodaj ovo među te provjere
    PHP Code:
    if(TargetID == playerid) return SendClientMessage(playeridCrvena"Ne mozete zavezati sebe"); 

    АЛАЛ ВЕРА

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •