SA-MP Forums Archive
Searching a carsystem.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Searching a carsystem.. (/showthread.php?tid=267771)



Searching a carsystem.. - xOFxK1LLER - 09.07.2011

Hey guys,

Iam searching a carsystem with the funktions
/spawnvehicle (Spawns a car)
/setowner (Set's the car owner)
/park (parks the vehicle and spawns there when you log in)
/sellmycar (Sells the car to a other player)


Maybe you can help me.

Thanks!


Re: Searching a carsystem.. - [MG]Dimi - 09.07.2011

http://forum.sa-mp.com/search.php


AW: Searching a carsystem.. - xOFxK1LLER - 10.07.2011

Wow great help.


Re: Searching a carsystem.. - =WoR=Varth - 10.07.2011

This isn't searching, this is requesting.


Re: Searching a carsystem.. - xOFxK1LLER - 12.07.2011

Yeah your right hehe


Re: Searching a carsystem.. - Shadoww5 - 12.07.2011

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;




Re: Searching a carsystem.. - xOFxK1LLER - 13.07.2011

hehe its good to spawn vehicles but the other commands like /park, /sellmycar are importend