Searching a carsystem..
#6

Quote:
Originally Posted by xOFxK1LLER
Посмотреть сообщение
/spawnvehicle (Spawns a car)
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/spawnvehicle"true) == 0)
    {
        new 
v[256], idx;
        
strtok(cmdtextidx);
        if(!
strlen(v)) return SendClientMessage(playerid0xFF0000FF"USE: /spawnvehicle [VEHICLE ID]");
        if(!
IsValidVehicle(strval(v))) return SendClientMessage(playerid0xFF0000FF"INVALID VEHICLE ID.");
        
SetVehicleToRespawn(strval(v));
        
format(vsizeof v"Vehicle 60 respawned successfully."strval(v));
        
SendClientMessage(playerid0xFFFF00FFv);
        return 
1;
    }
    return 
0;
}
stock IsValidVehicle(vehicleid)
{
    switch(
GetVehicleModel(vehicleid))
    {
        case 
406407408409413414416418423424427428431434437442443444445455456457459471482483485486489490494495498499500502503504505508514524525528530531543544545556557568 571572573574578582583588596597598599601605609448461462463468481509510522523581586417425447469487488497548563460476511512513519520539553577592593430446452453454472473484493595432433470441464465501564594449537538569570590435450584591606607608610611479: return 1;
    }
    return 
0;

Reply


Messages In This Thread
Searching a carsystem.. - by xOFxK1LLER - 09.07.2011, 20:51
Re: Searching a carsystem.. - by [MG]Dimi - 09.07.2011, 21:58
AW: Searching a carsystem.. - by xOFxK1LLER - 10.07.2011, 02:37
Re: Searching a carsystem.. - by =WoR=Varth - 10.07.2011, 02:47
Re: Searching a carsystem.. - by xOFxK1LLER - 12.07.2011, 15:05
Re: Searching a carsystem.. - by Shadoww5 - 12.07.2011, 15:47
Re: Searching a carsystem.. - by xOFxK1LLER - 13.07.2011, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)