Help with a command
#1

When make this team once again, it is necessary that there were same actions

Код:
if(strcmp("/mig", cmdtext, true, 10) == 0)
{
        if(migprov[playerid] == 0)
        {
        DestroyObject(mig[playerid]);
        mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
        AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
        SendClientMessage(playerid, COLOR_WHITE, "one");
        GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
        migprov[playerid]=1;
        }
        return 1;
    }
Reply
#2

What?! I just.. what? Try to explain better.
Reply
#3

When make this team once again, it is necessary that there were same actions
Reply
#4

Here is how that so
But how correctly to make?
Код:
if(strcmp("/mig", cmdtext, true, 10) == 0)
{
        if(migprov[playerid] == 0)
        {
        DestroyObject(mig[playerid]);
        mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
        AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
        SendClientMessage(playerid, COLOR_WHITE, "one");
        GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
        migprov[playerid]=1;
        }
        else
        {
        DestroyObject(mig[playerid]);
        mig[playerid] = CreateObject(18646,0,0,0,0,0,0,100.0);
        AttachObjectToVehicle(mig[playerid], GetPlayerVehicleID(playerid), -0.4, -0.1, 0.87, 0.0, 0.0, 0.0);
        SendClientMessage(playerid, COLOR_WHITE, "one");
        GameTextForPlayer(playerid,"~r~-~w~$5000", 1000, 1);
        migprov[playerid]=1;
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)