[GameMode] Bgtracker's DM Gamemode V1
#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


Messages In This Thread
Bgtracker's DM Gamemode V1 - by N.K.Stallone - 10.09.2011, 22:51
Re : Bgtracker's DM Gamemode V1 - by Naruto_Emilio - 10.09.2011, 22:55
Re: Re : Bgtracker's DM Gamemode V1 - by N.K.Stallone - 10.09.2011, 22:56
Re : Bgtracker's DM Gamemode V1 - by Naruto_Emilio - 11.09.2011, 00:28
Re: Re : Bgtracker's DM Gamemode V1 - by N.K.Stallone - 11.09.2011, 05:06
Re: Bgtracker's DM Gamemode V1 - by omribobi5 - 16.06.2013, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)