View Single Post
Old 31/05/2017, 09:55 PM   #15
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,850
Reputation: 675
Default Re: How to use "DestroyVehicle" whitout player in vehicle?

Without using strtok, sscanf or any other dependency
PHP Code:
//OnPlayerCommandText
    
if(strcmp(cmdtext,"/fb"true3) == && cmdtext[3] <= ' ') {
        if(
cmdtext[3] == EOS || cmdtext[4] == EOS) {
            return 
SendClientMessage(playerid, -1"/fb <car id>");
        }
        if(
DestroyVehicle(strval(cmdtext[4])) == 0) {
            return 
SendClientMessage(playerid, -1"Invalid vehicleid!");
        }
        return 
SendClientMessage(playerid, -1"Vehicle destroyed!");
    } 
Nero_3D is offline   Reply With Quote