13.12.2009, 17:28
Make your own then:
That should work
pawn Код:
if( !strcmp( cmdtext, "/spawnvehicle", true ) || !strcmp( cmdtext, "/sveh", true ))
{
if( strlen( cmdtext ) < 14 )
return SendClientMessage( playerid, 0xFF0000FF, "USAGE: \"/spawnvehicle <modelid>\"" );
if( strval( cmdtext[ 14 ] ) < 400 || strval( cmdtext[ 14 ] ) > 611 )
return SendClientMessage( playerid, 0xFF0000FF, "Invalid MODELID. Use 400-611" );
new
Float:x,
Float:y,
Float:z;
GetPlayerPos( playerid, x, y, z );
CreateVehicle( strval( cmdtext[ 14 ] ), x+1, y+1, z+0.5, 0, -1, -1, -1 );
return SendClientMessage( playerid, 0x00FF00FF, "Success!" );
}