[GameMode] Bgtracker's DM Gamemode V1
#1

REMOVED
Reply
#2

Nothing perfect, but good for a newbie scripter + put an pastebin link
Reply
#3

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
Nothing perfect, but good for a newbie scripter + put an pastebin link
Ok no problem one second.
Reply
#4

The script is tottally fucked, you are always putting return 1; in every place
example:
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0)
    {
        if(pTeam[playerid] == team_lspd){
            SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !");
                return 1;
        }
                if(pTeam[playerid] == team_gang){
            SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !");
                return 1;
        }
                return 1;
        }
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0)
    {
        if(pTeam[playerid] == team_lspd)
        {
            SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !");
        }

        else if(pTeam[playerid] == team_gang)
        {
            SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !");
        return 1;
        }

and
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0)
        {
                if(!IsPlayerInAnyVehicle(playerid)){
                SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command.");
                return 1;
        }
 
                new vehicleid = GetPlayerVehicleID(playerid);
                new string[128];
                format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid);
                SendClientMessage(playerid, COLOR_GREEN , string);
                RepairVehicle(vehicleid);
                return 1;
        }
To
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0)
        {
                if(!IsPlayerInAnyVehicle(playerid))
        {
                SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command.");
        }
        else
        {

                new vehicleid = GetPlayerVehicleID(playerid);
                new string[128];
                format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid);
                SendClientMessage(playerid, COLOR_GREEN , string);
                RepairVehicle(vehicleid);
        }
                return 1;
        }
Reply
#5

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
The script is tottally fucked, you are always putting return 1; in every place
example:
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0)
    {
        if(pTeam[playerid] == team_lspd){
            SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !");
                return 1;
        }
                if(pTeam[playerid] == team_gang){
            SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !");
                return 1;
        }
                return 1;
        }
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0)
    {
        if(pTeam[playerid] == team_lspd)
        {
            SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !");
        }

        else if(pTeam[playerid] == team_gang)
        {
            SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !");
        return 1;
        }

and
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0)
        {
                if(!IsPlayerInAnyVehicle(playerid)){
                SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command.");
                return 1;
        }
 
                new vehicleid = GetPlayerVehicleID(playerid);
                new string[128];
                format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid);
                SendClientMessage(playerid, COLOR_GREEN , string);
                RepairVehicle(vehicleid);
                return 1;
        }
To
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0)
        {
                if(!IsPlayerInAnyVehicle(playerid))
        {
                SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command.");
        }
        else
        {

                new vehicleid = GetPlayerVehicleID(playerid);
                new string[128];
                format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid);
                SendClientMessage(playerid, COLOR_GREEN , string);
                RepairVehicle(vehicleid);
        }
                return 1;
        }
Dude thanks for the points but i know how to do it.
The script compiles fine and is working fine the way i make it.
Reply
#6

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)