#6

pawn Код:
if(strcmp(cmd, "/car", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
      tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /car [ID/DioImena]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                    CreateVehicle(giveplayerid, 424, 2, 2);    
                    PutPlayerInVehicle(giveplayerid, 424, 0);
                        return 1;
                    }
                }//not connected
            }
            else
            {
                format(string, sizeof(string), "ERROR: Igrac %s nije aktivan igrac. Pokusajte kasnje opet.", giveplayerid);
                SendClientMessage(playerid, COLOR_LIGHTRED, string);
            }
        }
        return 1;
    }
Is this right ?
Reply


Messages In This Thread
Car - by Edin Black - 02.06.2012, 15:39
Re: Car - by Rayelm - 02.06.2012, 15:43
Re: Car - by Edin Black - 02.06.2012, 15:49
Re: Car - by Rayelm - 02.06.2012, 15:50
Re: Car - by Yuryfury - 02.06.2012, 15:52
Re: Car - by Edin Black - 02.06.2012, 17:44
Re: Car - by Edin Black - 02.06.2012, 18:08
Re: Car - by Edin Black - 02.06.2012, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)