DestroyVehicle Sk
From SA-MP Wiki
(Difference between revisions)
Revision as of 10:40, 2 April 2011 LaZ (Talk | contribs) ← Previous diff |
Current revision MP2 (Talk | contribs) |
||
Line 1: | Line 1: | ||
- | {{Scripting}} | + | {{Delete|Language not supported.}} |
- | {{Title}} | + | |
- | + | ||
- | {{Description|Táto funkcia odstráni vozidlo, ktoré ste predtým vytvorili.}} | + | |
- | + | ||
- | {{Parameters|vehicleid}} | + | |
- | {{Param|vehicleid|ID vozidla, ktoré chcete odstrániť.}} | + | |
- | + | ||
- | {{NoReturn}} | + | |
- | + | ||
- | <pawn> | + | |
- | public OnPlayerCommandText(playerid, cmdtext[]) | + | |
- | { | + | |
- | // Nasledujúci script spôsobí, že ak zadáte príkaz /znicvoz, zničí auto, v ktorom hráč sedí. | + | |
- | if(strcmp(cmdtext, "/znicvoz", true) == 0) | + | |
- | { | + | |
- | new auto = GetPlayerVehicleID(playerid); | + | |
- | RemovePlayerFromVehicle(playerid); | + | |
- | DestroyVehicle(auto); | + | |
- | return 1; | + | |
- | } | + | |
- | + | ||
- | return 0; | + | |
- | } | + | |
- | </pawn> | + | |
- | + | ||
- | {{RelatedFunctions}} | + | |
- | {{CreateVehicle}} | + | |
- | {{RemovePlayerFromVehicle}} | + | |
- | {{SetVehicleToRespawn}} | + |
Current revision
This page has been suggested for deletion. Language not supported. [ Discuss ][ What links here? ] |