I Got a warrning, any Help
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/v bansh", cmdtext, true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Vehicle");
        if(Veh[playerid] != 0) DestroyVehicle(Veh[playerid]);
        new Float:x, Float:y, Float:z, Float:angle;
        GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, angle);
        Veh[playerid] = CreateVehicle(429, x, y, z, angle, 0, 0, 60);
        PutPlayerInVehicle(playerid, Veh[playerid], 0);
        ChangeVehicleColor(Veh[playerid], 2, 1);
        return 1;
    }
    if (strcmp("/anothercmd", cmdtext, true) == 0)
    {
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
I Got a warrning, any Help - by Compton. - 07.06.2012, 10:00
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:02
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:04
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:10
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:13
Re: I Got a warrning, any Help - by Stefand - 07.06.2012, 10:15
Re: I Got a warrning, any Help - by MadeMan - 07.06.2012, 10:19
Re: I Got a warrning, any Help - by Compton. - 07.06.2012, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)