Respawn car + Reason
#7

pawn Код:
CMD:respawncar(playerid, params[])
{
    if(alevel[playerid] < 1) return SCM(playerid, BIELA, "[ ! ] Nemбљ dostatoc(nй Admin Prбva !");

    static
        vehID
    ;
    new reason[128];

    if(sscanf( params, "iS", vehID, reason)) return SendClientMessage( playerid, -1, "Pouћi: /respawncar < carID > < reason >" );
    if (vehID == INVALID_VEHICLE_ID) return SendClientMessage( playerid, -1, "ERROR: Bad CarID ." );

    SetVehicleToRespawn( vehID );

    new string[128];
    format(string, sizeof string, "Admin %s (%d) has respawned vehicle ID %d successfully. Reason %s.", PlayerName(pID), pID, vehid, reason);
    SendClientMessage(playerid, -1, string);

    return 1;
}
Hope this helps
Reply


Messages In This Thread
Respawn car + Reason - by NiKi123 - 08.05.2014, 08:05
Re: Respawn car + Reason - by DaniceMcHarley - 08.05.2014, 08:12
Re: Respawn car + Reason - by [..MonTaNa..] - 08.05.2014, 08:12
Re: Respawn car + Reason - by NiKi123 - 08.05.2014, 08:32
Re: Respawn car + Reason - by [..MonTaNa..] - 08.05.2014, 09:28
Re: Respawn car + Reason - by NiKi123 - 08.05.2014, 09:31
Re: Respawn car + Reason - by [..MonTaNa..] - 08.05.2014, 09:37
Re: Respawn car + Reason - by NiKi123 - 08.05.2014, 09:50

Forum Jump:


Users browsing this thread: 3 Guest(s)