Simple /Carcolour Script
#1

Hey Guys!.
I'm really new here, And currently learning Pawno. So i would like to know that how can i create a simple "/carcolour color1 color2" Cmd?
Reply
#2

Quote:
Originally Posted by TitanForceGeneral
Посмотреть сообщение
really new here
Quote:
Originally Posted by TitanForceGeneral
Посмотреть сообщение
With STRCMP
Don't bother. Start with the best from the beginning.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Don't bother. Start with the best from the beginning.
Alright sir. If not with strcmp can you please help me make this script?
Reply
#4

samp wiki help on change vehicle colour: https://sampwiki.blast.hk/wiki/ChangeVehicleColor
PHP код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>

CMD:carcolour(playerid,params[]) {
    
#pragma unused params
    
new ColorIDColorID2vehicleidstr[75];
    if(
sscanf(params"dd"ColorID,ColorID2)) return SendClientMessage(playerid, -1"Usage: /buycarcolor [color1] [color2]");
    else if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"You are not in a vehicle.");
    else
    {
        
vehicleid GetPlayerVehicleID(playerid);
        
ChangeVehicleColor(vehicleidColorIDColorID2);
        
format(strsizeof(str),"You have changed your vehicle's color.",ColorIDColorID2);
        
SendClientMessage(playerid, -1str);
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)